How to set TRUST_DATA_AS_HTML true for newHtmlArea()?

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

How to set TRUST_DATA_AS_HTML true for newHtmlArea()?

Postby pbdavis » Mon Apr 06, 2020 8:23 pm

How do I get putClientProperty(APP_UI_PROPERTY.TRUST_DATA_AS_HTML, true) to work for newHtmlArea(dataprovider, x, y, width, height): JSField?

I'm trying to get MindFire Solution's Auto Logout extension to work in Servoy 2020.03.

The pop-up and javascript works with application.putClientProperty(APP_UI_PROPERTY.TRUST_DATA_AS_HTML, true), but I don't want this for the whole application. Just for this "newHtmlArea".

In the scope autologout.js I'm trying this, but it doesn't work (TypeError: Cannot find function putClientProperty in object):
Code: Select all
frm.newVariable('var_progressbar', JSVariable.TEXT);
var htmlarea = frm.newHtmlArea('var_progressbar', 10, 70, AUTO_LOGOUT_CUSTOM_PROPERTIES.WIDTH - 20, 130);
htmlarea.editable = false;
htmlarea.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_NEVER|SM_SCROLLBAR.VERTICAL_SCROLLBAR_NEVER;
htmlarea.transparent = true;
htmlarea.styleClass = 'html';
htmlarea.name = 'logoutHtmlArea';
htmlarea.putClientProperty(APP_UI_PROPERTY.TRUST_DATA_AS_HTML, true);

Thanks,
Paul Davis
Belcan Engineering Group, LLC
pbdavis
 
Posts: 60
Joined: Thu Nov 30, 2017 5:40 pm
Location: Florida, USA

Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 10 guests