AnsweredAssumed Answered

Cannot Get value: data-dojo-attach-point

Question asked by jamesfreddyc on Jan 24, 2018
Latest reply on Jan 24, 2018 by jamesfreddyc

Attempting to build a new widget and having difficulty acquiring the value found in a textbox control in the widget.html and getting the error: "this.<name>.get is not a function".  Hopefully I'm just missing the obvious.  And thanks to Robert and this group for the jumpstart!


Widget.html (line 5 has the appNoInput reference I'm trying to get the value from)

  <div data-dojo-attach-point="tabIdentify">
    <div class="my-tab-node" data-dojo-attach-point="tabNode1">
      <div class="main-div" data-dojo-attach-point='mainDiv'>
    <label for="${id}_appNoInput">App No: </label><input type="text" class="appNoBox" id="${id}_appNoInput" data-dojo-type="dijit/form/ValidationTextBox" data-dojo-attach-point="appNoInput" data-dojo-attach-event="keypress:_onSearchKeyPress" />
    <div class="jimu-btn" data-dojo-attach-point="queryButton" data-dojo-attach-event="click:_onQueryAppNo">Query App No.</div>

....and so forth




var appNo = this.appNoInput.get("value");
//generates the error "this.appNoInput.get is not a function"