Page 1 of 1
VL-Web image in a list
Posted: Wed Jan 30, 2019 2:45 am
by atostaine
Is it possible to show images in a list where the image is on a server? For instance an image may be at
http://myserver:82/tmp/1020581081.jpg
If not, any tips on what I should be doing to show the users multiple images.
Thanks, Art
Re: VL-Web image in a list
Posted: Wed Jan 30, 2019 3:43 am
by caseywhite
Art. After you add the entry just do the following:
#ListColumn1.CurrentItem.ImageFileName := '
http://myserver:82/tmp/1020581081.jpg'
If the image is on the same server then you don't need the
http://myserver:82
Re: VL-Web image in a list
Posted: Wed Jan 30, 2019 4:07 am
by atostaine
Thanks Casey. I had tried image but not ImageFileName.
Fun story. In order to get images for an invoice, I have to post a URL to a website, receive and parse an XML that gives me the file names, then copy those files from the imaging server to the web server so that I can serve them. Oh and probably clean them up too.
Art
Re: VL-Web image in a list
Posted: Thu Jan 31, 2019 4:47 am
by atostaine
When a user clicks on an image it opens up full screen view (NICE) but it always shows the last image in the list no matter which they click.
Do I have to do something special to get the currentitem URL when they click?
Thanks
Re: VL-Web image in a list
Posted: Thu Jan 31, 2019 4:53 am
by caseywhite
What does your code look like for the click. This works fine for me.
Evtroutine Handling(#List.ItemClick)
#sys_web.Alert Caption(#ListColumn1.CurrentItem.ImageFileName)
Endroutine
Re: VL-Web image in a list
Posted: Thu Jan 31, 2019 5:07 am
by atostaine
Yes currentitem works fine. Thanks