Page 1 of 1

How to set TRUST_DATA_AS_HTML true for newHtmlArea()?

PostPosted: Mon Apr 06, 2020 8:23 pm
by pbdavis
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,