<value prompt="Select from the following" uniquevalsfromfield="VALVEID" isvaluerequired="true" autosubmit="true">VALVEID = '[value]'</value>
<layer> <token /> <definitionexpression /> <enableexport>true</enableexport> <name>Address</name> <url>http://GIS01.lebanon.local/arcgis/rest/services/OperationalLayers/Planning/MapServer/2</url> <expressions> <expression alias="Address" textsearchlabel="Search Complete Address:" isvaluerequired="true"> <values> <value prompt="Example: 925 Main St" isvaluerequired="true"> upper ( SITUS ) LIKE upper ( value ]%')</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Zoning</graphicalsearchlabel> <spatialsearchlayer>false</spatialsearchlayer> <titlefield>ADDRESS</titlefield> <fields all="true" /> <links /> <zoomscale usegeometry="true" zoompercent="2" /> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates /> <symbology> <simplemarkersymbol color="0xff0000" alpha="0.5"> </simplemarkersymbol> </symbology> </layer>
<relates> <relate id="0" label="Contract Attachments" enableexport="true" enableprint= "true" icon="assets/images/i_folder.png"> <fields all="false" > <field name="ContractNumber"/> <field name="ContractName"/> <field name="SMuniOrSAgency"/> <field name="WebRelativeImagePath" alias="Image" hyperlinkgridfield="true" hyperlinkaliastext="Show Attachment"/> </fields> </relate> </relates>
Do you see the the relates listed at the bottom of the rest service page like this?Relationships:calhoun.COUNTY.A_Bridge (0) -- Related To: ABIMS Bridges (0) calhoun.COUNTY.ADT (1) -- Related To: Average Daily Traffic (1) calhoun.COUNTY.Rail_Cross (2) -- Related To: Railroad Crossings (2) calhoun.COUNTY.Signs (3) -- Related To: Road Signs (3) calhoun.COUNTY.Guardrail (4) -- Related To: Guardrails (4)
OK, but the fact that it works in ArcMap is only half the battle. Now you need to test a Query of the related data using the REST End point. Can you post the test of your relates from the rest service page like I did?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.