AnsweredAssumed Answered

what if I need to get some information from widget.html?

Question asked by LM61067628 on May 3, 2017
Latest reply on May 3, 2017 by rscheitlin

I created a simple widget using my own code and want to run in WAB developer Edition.

In Widget.html file, I have a dijit/form/Select as the following:

 

<select class="ControlA"

                        data-dojo-attach-point="myfirstControl"

                        data-dojo-type="dijit/form/Select">

</select>

 

In Widget.js file, I have add some values to the 'Select'; I want to get the current displayed value using the code as the following:

alert("The current selected value is  "+ this. myfirstControl.displayedValue);

 

But the system always indicated that it is not defined. So what if I need to get some information from my dijit/form/Select? What should I do? Thanks a lot!

Outcomes