AnsweredAssumed Answered

Feature table query date issues

Question asked by andreribeiro on Feb 24, 2017
Latest reply on Feb 27, 2017 by tsellste

I'm having some issues querying the feature table in ArcGis JavaScript API. I already had developed query by string and coded values with success but the date fields not, unfortenely.


Can someone help me with this issue?


This is my code to query by a string field "nud":



<input id="stringTextBox" type="text" data-dojo-type="dijit/form/TextBox" data-dojo-props="trim:true, intermediateChanges:true" class="dijit-form-TextBox filterTb"

<button type="button" id="confirm">Filtrar</button>



var confirmar = dom.byId("confirm");

on(confirmar, "click", function(value){
              var userVal = dijit.byId("stringTextBox").get('value');  
              var oidFld = myFeatureLayer.objectIdField;  
              var query = new Query(); 
              lastWhere = query.where = "nud LIKE '%" +  userVal + "%'";
            myFeatureLayer.queryIds(query, lang.hitch(this, function(objectIds) {  
               myFeatureTable.selectedRowIds = objectIds;