For the items in the Search.html, e.g. the 2 listed below:
<label data-dojo-attach-point="labelSearchTerm0"> </label>
<input type="text" style="width:100%;" data-dojo-type="dijit/form/TextBox" data-dojo-attach-point="inputSearchTerm0" data-dojo-props="trim:true,disabled:true" />
I want to dynamically re-set their values in JavaScript. How to do it? Appreciate if you can help
Solved! Go to Solution.
Assuming your JavaScript code is in Search.js and you want to set the value in dijit you referenced with the attach point 'data-dojo-attach-point="inputSearchTerm0"`, you would use:
this.inputSearchTerm0.set('value', 'My Value');
There are numerous additional examples of this method in Search.js. Here's one: cmv-widgets/Search.js at master · tmcgee/cmv-widgets · GitHub
Assuming your JavaScript code is in Search.js and you want to set the value in dijit you referenced with the attach point 'data-dojo-attach-point="inputSearchTerm0"`, you would use:
this.inputSearchTerm0.set('value', 'My Value');
There are numerous additional examples of this method in Search.js. Here's one: cmv-widgets/Search.js at master · tmcgee/cmv-widgets · GitHub
Thanks. I got the same answer as you provided as I reviewed the code.