Update text of custom html

Posted by Bert Binnenmarsch on 16-May-2017 08:04

The following code changes the caption of a button and the contents of a html element.

this.scope.buttonStart.options.content = "MyText";
this.scope.customhtml0.options.html = "MyText";

The code is working for the button but the html element doesn't update its text.

All Replies

Posted by egarcia on 16-May-2017 10:01

Hello,

I tested this and both the button and the HTML element were updated.

Here is a link to my test app:

oemobiledemo.progress.com/.../

Do you get any errors in the JavaScript Console?

I hope this helps.

Posted by Bert Binnenmarsch on 17-May-2017 01:39

The code to change the text of the custom html component is in the 'Change Event function' of a date picker.

As said earlier, the text isn't updated, but alert(this.scope.customhtml0.options.html) shows the updated text in a popup.

It seems that the custom html component needs a refresh/repaint command.

This thread is closed