Display image from external URL in Grid

I have a database that includes a column containing urls to images (not residing on my server). In the Grid application I have the option to set the field to Image (File Name) but that will only display images that reside on my server in the set img directory…how can I make it display the external images referenced in my database?

Thanks.

[QUOTE=lanrobo;24059]I have a database that includes a column containing urls to images (not residing on my server). In the Grid application I have the option to set the field to Image (File Name) but that will only display images that reside on my server in the set img directory…how can I make it display the external images referenced in my database?

Thanks.[/QUOTE]

Never tried, but you can make a field of type label and then put your <img … into it.

Cool, thank you. I will give that a try.

LanRobo, good day, thanks you attetion.
please help me, my scritpcase develomentp and productim
mys files image exits in folder /scritpcase/img

i have field type (File Name). in application grid.
i in field folder write [glo_pathimg]{itemid}
not found field o how change name file for example {itemdid}.‘png’
I write event on record
{IMAGEN} = {T.ITEMID}.’.PNG’;

in event onscritpinit write
[glo_pathimg]=’/FOTOS/’;

i review config php.ini in develoment and production
extension=php_gd2.dll is active.

runngin app.
In grid the field no view image, and code view bar footer is
javascritpt:nm_mostra_img(‘scritpcase/file/img/FOTOS/29073-04/29073-04.PNG’,)
the file exist in path.

The error in enviroment develoment, click view image,
Not Found
The requested URL /scriptcase/tmp/sc_imagen_1001002133ef32bee673f0a0f4b2bfaf7b83e9.jpg was not found on this server.

I have permis administrator an use user adminstrator in my computer.
i not have active antivirus.

I view folder /scriptcase/tmp/ no exist file,
the file exist in my folder path.
scritpcase/file/img/FOTOS/29073-04/

I use Browser for develoment Firefox, i test in browse enviroment develoment Chrome, Explorer 9.

i search forum the this answer. thanks to aducom (How to show picture of user that is stored per userid on the server?)

"You can create a field of type image and apply the url to it. Also you can make a label field and apply the image link to it. If you need to manage your images then you could create a database with a filename field and initially fill this with all the images. On your form you make a field of type database/file. Be aware that when you deploy you need to choose the advanced option, then you will be able to apply the correct directory on your production server. "

i not understand, how and apply the url to it.

excuse me all in forum,

my Versi?n 7.01.0021
Tipos Enterprise Copper
Serial
Licencias 1
Aplicaci?n Ilimitada
Upgrade expira en: 21/02/2015

Still image issues -

[QUOTE=lanrobo;24059]I have a database that includes a column containing urls to images (not residing on my server). In the Grid application I have the option to set the field to Image (File Name) but that will only display images that reside on my server in the set img directory…how can I make it display the external images referenced in my database?

Thanks.[/QUOTE]

I have the same issue as above - I have tried about every combination of type and event to change source etc. I still cannot get images via an external location to show up in the form… Am I missing something…?
I have the base file name stored in the Database as well 2 other fields make up the sub directories in the path to the image stored on another server. I cannot get it to display at all - something pretty straight forward you would expect - have I missed something so simple - ?

Thanks for any help.

Create a custom text field in your grid (i.e. {show_image})

onRecord event:

$pic_url = “http://www.my_pic_server.com/”.{path_field1}."/".{path_field2}."/".{pic_field}";
{show_image} = “<img src=’”.$pic_url."’/>";

In a form you have to use a label field.

jsb

thanks you JSbinca.
i copy code i not work, because, the path correct,
I runng example in scriptcase 8, in grid application and form add type grid.
the view field for my case IMAGE
$pic_url = “http://localhost/"./images/"."1234.png”;
{image} = “<img src=’”.$pic_url."’/>";
not view image, the view code html
i copy code url in other window and view image correct.
the field have propierty image, how to change dynamic in onrercord.?

Hi,
you need a field in your table which holds the url to the image.
In the onRecord event you can just

{image} = “<img src=’”.{image_field_of_table}."’/>"; //watch the quotes

jsb