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.
Thanks