<layer> <definitionexpression></definitionexpression> <enableexport>false</enableexport> <name>Generation</name> <url>http://dcpgisav/ArcGIS/rest/services/Operations/Generation/MapServer/0</url> <expressions> <expression alias="EMS Name" textsearchlabel="Search EMS Name:"> <values> <value prompt="Example: ARSENAL">upper(EMS_STATION_NAME) like upper('%[value]%')</value> </values> </expression> <expression alias="Balancing Authority" textserachlabel="Select Balancing Authority..."> <values> <value prompt="Select an area:" field="CTRLAREA" usedomain="true">CTRLAREA = '[value]'</value> <value prompt="Select a fuel type:" field="PRIMARY_FUEL" usedomain="true">PRIMARY_FUEL = '[value]'</value> </values> </expression> </expressions>
Solved! Go to Solution.
Robert,
I am able to query against the data in the REST
<definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>SRC Land Data</name> <url>http://pit-arcgis/arcgis/rest/services/Land/PA_Land_Data/MapServer/8</url> <expressions> <expression alias="Agreement Number" textsearchlabel="Search Agreement Number:"> <values> <value prompt="Example: 061853" >AGMT_NUM = '[value]'</value> </values> </expression> <expression alias="Lessor" textsearchlabel="Search Lessor:"> <values> <value prompt="Example: Bob Smith">upper(LESSOR) = upper('[value]')</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Land Data</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>AGMT_NUM</titlefield> <fields all="true">and that fixed it...
<field name="SHAPE" gridfieldonly="true" gridfield="false"/> <field name="SHAPE.area" gridfieldonly="true" gridfield="false"/> <field name="SHAPE.len" gridfieldonly="true" gridfield="false"/>
OK, I've checked every service I am searching against. Only 2 fail, this one and another point layer. Both produce the error until i switch the Field All value to true. Then everything is right as rain. 😄
Robert, thanks for your help and thanks for writing these great tools!