I was wondering if it is possible to use my calls for service layer and use another web services to populate a field(example Grid). I have a grid web service (url) that I would like use. Using unique value parses everything in the Calls for service layer (over 2million records) and there are too many to record in the predefined option.
"layers": [
{
"name": "Calls for Service",
"url": "http://phqgis01:6080/arcgis/rest/services/CallsForService..........",
Predefine option
"fieldObj": {
"name": "Grid",
"label": "Grid",
"shortType": "string",
"type": "esriFieldTypeString"
},
"valueObj": {
"value": ""
},
"prompt": "Grid is",
"textsearchhint": "ex: AB02",
"sqltext": "Grid = '[value]'",
"operation": "stringOperatorIs",
"operator": "AND",
"userlist": "|,AB02|AB02,AB03|AB03,AB04|AB04,AB09|AB09,AB10|AB10,AB11|AB11,AB12|AB12,AB13|AB13,AB14|AB14,AB15|AB15,AB16|AB16,AB17|
Possible url option
My grid url that I would like to pass in my grid field.
http://phqgis01:6080/arcgis/rest/services/Grids.......
Thank you
Rudo,
I can not even wrap my head around this question, but needless to say that no this is not supported unless you can program this yourself.
Sorry if my question is a bit confusing, I guess what I am really asking is if there is a method that will allow me to populate a field that in one layer, using another web service. I have the disposition field in my layer how using unique and predefine values take too long. is it possible to call on on my disposition web service (ie. http://phqgis01:6080/arcgis/rest/services/DispoCodes1/MapServer/1) for that specific field?
Rudo,
I can see that trying to use unique values on 2 million records would take to long. But to answer your question No. You can not use another layer to define the values of a particular field for a search layer. The coding and configuration complexity would be crazy. Your only option is to add the values as predefined. If you have any python or or programming skills you could create a script that would loop through the service layer that you are talking about and build you the string that you could copy and paste into the config_Enhanced Search Widget.json for this defined list.