Page 1 of 1

VL-Web: Images from different sites

Posted: Fri Aug 18, 2017 9:04 pm
by René Houba
Hi,

I was wondering if someting like this is possible:

We are going to make a website for a prospect. They are in the food industry. This site shows several pictures of articles.

The prospect has several Suppliers.
The pictures to show are not pictures of our prospect, they are pictures of their suppliers and are also located on the site of the supplier.

It could be that the supplier decides to change one of their pictures. They do that in their own environment and the website of our prospect should pick up this changed picture immediately.

To have this work is very important for our prospect. They have so many suppliers and they made each supplier responsible for their own pictures.


So in this scenario, the picture is not located in the LANSA IMAGES folder at all.


Kind regards,
René

Re: VL-Web: Images from different sites

Posted: Sat Aug 19, 2017 10:07 am
by dannyoorburg
Hi René,

PRIM_IMAG.Filename takes URLs as well.

Cheers,
Danny

Re: VL-Web: Images from different sites

Posted: Sat Aug 19, 2017 6:59 pm
by René Houba
Hi Danny,

That's great. Is there a specific syntax for this or is it just like this:
#Image.filename := ('http://www.lansa.com/PoC/en_ALL/images/logo.gif')


Kind regards,
René

Re: VL-Web: Images from different sites

Posted: Mon Aug 21, 2017 3:39 pm
by JamesDuignan
Hi Rene,

Yep, as simple as that, as long as the image exists ;)

Code: Select all

Begin_Com Role(*EXTENDS #PRIM_WEB)

Define_Com Class(#PRIM_IMAG) Name(#gImage) Displayposition(1) Parent(#COM_OWNER) Height(313) Width(569) Tabposition(1) Left(32) Top(8)

Evtroutine Handling(#Com_owner.Initialize)

#gImage.FileName := ('http://www.lansa.com/img/products/visual-lansa-web-development-responsive.png')

Endroutine

End_Com

Re: VL-Web: Images from different sites

Posted: Tue Aug 22, 2017 3:38 am
by René Houba
THANKS James :)