Strange One - Smart Client Not Displaying Image

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Strange One - Smart Client Not Displaying Image

Postby bcusick » Fri Feb 08, 2019 11:42 pm

Hey Guys,

This is a really strange one....

I have a calculation that returns HTML to show a graphic of a radio button (one graphic is the "on" state, one is the "off" state).

I have a label - and use "Display Tags" (the text of the label is %%myField%%) to make the contents of the label the graphic.

This is working GREAT in WebClient, but not in Smart Client.

SMART Client
smart_2019-02-08_13-33-14.jpg (22.3 KiB) Viewed 554 times

web_2019-02-08_13-32-22.jpg (21.83 KiB) Viewed 554 times

In debugging I've tried making just plain HTML (no image) and it works FINE - but as soon as I make the html contain an image - it breaks.

I have multiple calcs in multiple tables that have been using the same technique for YEARS - and because it works perfectly in WebClient - I know that the calculations are correct, etc. It has been working for YEARS, and then just "stopped".

Servoy 7.4.10
JVM Information HotSpot(TM) 64-Bit Server VM
java.version=1.8.0_171 mode
java.vm.vendor=Oracle Corporation

Operating System Information Server 2012
Bob Cusick
Posts: 1248
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Re: Strange One - Smart Client Not Displaying Image

Postby swingman » Sun Feb 10, 2019 2:30 pm

Not sure, but this may be related:

I have had a number of HTML-generating calculations when using Smart-Client, when converting to NG-Client I had to remove the outer HTML and BODY tags to get them to work, since the whole page is HTML....
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK - The world's most advanced open source database.
User avatar
Posts: 1336
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 3 guests