<div>
<label class="width70" for="FieldsCombo">Fields:</label>
<div data-dojo-attach-point="FieldsCombo" data-dojo-type="dijit/form/FilteringSelect" data-dojo-props="searchAttr:'name',intermediateChanges:true,placeHolder: 'Select Field'" class="dijit-form-FilteringSelect" style="width: 200px;height:30px;margin-Left: 51px;margin-top:5px;"></div>
</div>
this.SourceCombo.watch('displayedValue', function(property, oldValue, newValue) {
for(var k=0;k<layerInfoArray.length;k++)
{
if(layerInfoArray.title==newValue)
{
break;
}
}
var requestHandle = esriRequest({
"url": "https://localhost:6443/arcgis/rest/services/BaseMap/MapServer/"+k+"?f=pjson",
"content": {
"tags": "dog,us",
"tagmode": "all",
"format": "json"
},
"handeAs": "json",
"callbackParamName": "jsoncallback"
});
requestHandle.then(requestSucceeded, requestFailed);
function requestSucceeded(response, io){
var fields=(response["fields"]);
var FieldStore = new Memory({data: fields});
this.FieldsCombo.set('store', FieldStore);--------->this line produces errors
}
function requestFailed(error, io){
alert(dojoJson.toJson(error, true));
}
});
'cannot populate filteringselect
Resultent data from rest end point
- 1: {name: "REGIONCODE", type: "esriFieldTypeString", alias: "كود المنطقة", length: 2, domain: {…}}
- 2: {name: "GOVCODE", type: "esriFieldTypeString", alias: "كود المحافظة", length: 5, domain: {…}}
- 3: {name: "CENTERCODE", type: "esriFieldTypeString", alias: "كود المركز", length: 9, domain: null}
- 4: {name: "NAMEAR", type: "esriFieldTypeString", alias: "الاسم بالعربية", length: 50, domain: null}
- 5: {name: "NAMEEN", type: "esriFieldTypeString", alias: "الاسم بالإنجليزية", length: 50, domain: null}