show images on a field with displayType = IMAGE_MEDIA

Forum to discuss the Web client version of Servoy.

show images on a field with displayType = IMAGE_MEDIA

Postby juan.cristobo » Fri Jul 12, 2013 11:33 am

Hi all:

I have a field, its dataprovider is a calc field, with this (pseudo-code):

Code: Select all
return "http://myserver/" + table_field + ".jpg";


I set IMAGE_MEDIA as displayType.
In Smart Client I see an image in the field, but I see nothing in Web Client. Is there any limitation in WC with IMAGE_MEDIA type?
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am

Re: show images on a field with displayType = IMAGE_MEDIA

Postby david.pearce » Mon Jul 15, 2013 7:50 am

Hmmm,

if the field is in a table, I think you will have to use the blobloader.

if it is in a directory on your server, as the script appears to say then it should be an html field not a media field. I think.
david.pearce
 
Posts: 36
Joined: Thu Jan 31, 2013 11:21 am

Re: show images on a field with displayType = IMAGE_MEDIA

Postby juan.cristobo » Mon Jul 15, 2013 8:45 am

The field table_field is the product code, so the calc field returns, i.e., "http://myserver/watch_01245.jpg". If you put this url in the browser, you can see the product image.

The code works fine in Smart Client, I don't know why does not it work in Web Client... :(
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 186
Joined: Thu Apr 19, 2012 9:12 am


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 2 guests