Photo Displays in HTML Area Web Client not in Smart Client

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Photo Displays in HTML Area Web Client not in Smart Client

Postby anil » Wed Oct 30, 2013 5:33 pm

Hi,


I have an HTML area on a standard Servoy 7.2 form. The dataprovider for the form is a form variable.

I have a photo, whose binary data is stored in a text field (UDM.contact_notes) and not a media field (mobile client 7.2 does not support blobs currently).

The mobile solution displays the photos fine (in a bean).

The back end solution, running the Web Client also display the photos fine in an HTML area. However, if I switch to the Smart Client then the photo is not displayed.

Is this a bug in the Smart Client or am I missing something?

Here is the code below (all 3 lines of it) :-

/**
* @properties={typeid:35,uuid:"25F4E69B-758D-4AC9-A35A-2D221E3E0D4D",variableType:-4}
*/
var mynewimage = null;

/**
* @properties={typeid:35,uuid:"1C0952D6-1A4A-4A78-B322-6FBF2B26D23E",variableType:-4}
*/

/**
* Perform the element default action.
*
* @param {JSEvent} event the event that triggered the action
*
* @private
*
* @properties={typeid:24,uuid:"04645217-9C2E-429D-B2CD-F68FCBCF2C1D"}
*/
function onActionPreview(event)
{
forms.contacts.mynewimage = ' <html> <img id="imageURI" height="1000" width="100%" src="data:image/jpeg;base64,' + foundset.contact_notes + ' "> </html>'
elements.myimage.requestFocus();
}

I have attached a pdf with the screenshots from both the Web and the Smart Client.

Web Client Ok Smart Client Bad.pdf
(233.77 KiB) Downloaded 1048 times


Thanks
anil
 
Posts: 22
Joined: Tue Jul 17, 2012 11:42 am

Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 14 guests

cron