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
Srinivas Namani
2 answers
1
Hello Srinivas,
From the Modeller you cannot directly control widgets, but what you can do is:
Add an attribute property in your widget
Use the attribute in your widget’s JS to initialise/update the button caption
Subscribe to attribute changes in JS
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
Dragos Vrabie
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