How to update widget properties at runtime?

0
Hi Team, Can anyone help in updating a widget properties at runtime..? For example, I have a button on page with text β€˜Next’. In a microflow, I want to retrieve that widget and update the text to β€˜Submit’. Can this be done..? Thanks Srinivas Namani
asked
2 answers
1

Hello Srinivas,

From the Modeller you cannot directly control widgets, but what you can do is:

  1. Add an attribute property in your widget
  2. Use the attribute in your widget’s JS to initialise/update the button caption
  3. Subscribe to attribute changes in JS
  4. Create an attribute, select it for the widget and update it in your app when you want to change the button caption

Hope this helps

answered
0

You can use a HTMLSnippet in JS mode for this, use dijit.byNode(dojo.query(“SOMESELECTOR”)[0]) and then roll from there...do it all the time

answered