Report control or Details View with image


Joseph Caristena

Hi,
I need to insert a photo in the Report control
or in the Details View.

Here are some links to better understand:

http://www.egovmetrics.com/Screenshots/Screenshot001.jpg

http://www.egovmetrics.com/Screenshots/Screenshot002.jpg

Thanks
Best
Joseph Caristena


DecSoft

Hello Joseph,

Are you take a look at all the "Report*" app samples? Some of them include images, links (buttons) and more in the Report control. Please take a look and tell me if you have any further question.



Joseph Caristena

Hi,
I think the other Report samples with images are not connected to database mysql.

Thanks
Best
Joseph Caristena


DecSoft

Hello,

Hi,
I think the other Report samples with images are not connected to database mysql.

Thanks
Best
Joseph Caristena

In fact this doesn't matter. The JSON source is not important here. However, now I think you wanted to show an image retrieved from the server. Then what you must to do is to use the image's URL in an Image control or an HTML control. Or what I am missing here?



Joseph Caristena

Hi,
YES.
It is working ;)
Once in the Report control in the NotesView
in Visual section
then in the value field called HTML
with the following script:

it is working.

But now how can I display the image in the Details View ?

Maybe I should insert in the Details View
an Image control with a SetVar
in the Show event
and pass the value from the NotesView.

Any comment ?

Thanks
Best
Joseph Caristena

...


DecSoft

Hello Joseph,

I think you are right: in the same place we assign the record details for the text inputs, we must set the "Image" variable of an Image control with the appropiate record image url.



Joseph Caristena

Hi,
How can I insert a SetVar variable into an Image control ?

In the NotesReport control of the NotesView
in the RowClick I inserted:

SetVar "[CurrentImageUrl]" "[NotesReport.Record.imageurl]" "String"

Then in the DetailsView
in the Show event
I inserted the following script:

SetVar "[ImageUrlDetailsView.Value]" "[CurrentImageUrl]" "String"

An ImageUrlControl is on the DetailsView.
In the Image field of the Source section
I inserted the script:
[ImageUrlDetailsView.Value]

But I am not sure ...

Here is the link of the screenshot:
http://www.egovmetrics.com/Screenshots/Screenshot003.jpg

Thanks
Joseph Caristena

...


DecSoft

Hello Joseph,

When we deal with Inputs then the "Value" variable is the correct one, but for the Image control we must deal with the "Image" variable. Then, if I am not wrong, the below line:

Must be something like this instead:

Of course if the Image controls ID/Name is "ImageUrlDetailsView".


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.