Solved! Go to Solution.
<!--<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Road Centerlines</name> <url>http://gislap183/ArcGIS/rest/services/Highway/MapServer/5</url> <expressions> <expression alias="Road Name and Zip" textsearchlabel="Search by Road Name and Left Zipcode and Right Zip:"> <values> <value prompt="Example: ANDREW" isValueRequired="true">RD_NAME = '[value]'</value> <value prompt="Example: 36201" isValueRequired="true" operator="AND">ZIP_L = [value]</value> <value prompt="Example: 36201" isValueRequired="true" operator="AND">ZIP_R = [value]</value> </values> </expression> <expression alias="Road Surface" textsearchlabel="Search by Surface Type:"> <values> <value prompt="Example: Asphalt" field="Surf_Type" usedomain="true">Surf_Type = [value]</value> </values> </expression> <expression alias="Open SQL" textsearchlabel="Search by Typing Full SQL:"> <values> <value prompt="Example: RD_NAME = 'ANDREW' AND ZIP_L = 36201">[value]</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Roads</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Name</titlefield> <fields all="false"> <field name="Name" gridfield="true" sort="asc|1|string"/> <field name="Classification" gridfield="true" /> <field name="Length_" numberformat="2|,|." /> <field name="Width" gridfield="true" /> <field name="L_F_ADD" gridfield="true" /> <field name="L_T_ADD" gridfield="true" /> <field name="R_F_ADD" gridfield="true" /> <field name="R_T_ADD" gridfield="true" /> <field name="PREFIX" gridfield="true" /> <field name="PRETYPE" gridfield="true" /> <field name="RD_NAME" gridfield="true" /> <field name="TYPE" gridfield="true" /> <field name="SUFFIX" gridfield="true" /> <field name="ZIP_L" gridfield="true" /> <field name="ZIP_R" gridfield="true" /> </fields> <links> <link alias="View Mon. Ref Sheet" diablelinksifnull="true"> <![CDATA[http://somesite/gis/map/map_search/mrs_test.cfm?mrspoint={xxx}&lat={ZIP_L}&long={ZIP_R}]]> <icon><![CDATA[assets/images/w_link.png]]></icon> </link> </links> <zoomscale usegeometry="true" zoompercent="1.6" /> <autoopendatagrid>true</autoopendatagrid> <relates> <relate id="0" label="ABIMS Bridge" enableexport="true" icon="assets/images/i_hydro.png"> <fields all="true" /> </relate> <relate id="1" label="Average Daily Traffic" enableexport="true" icon="assets/images/i_flag.png"> <fields all="false"> <field name="Date_" dateformat="MM/DD/YYYY" sort="asc|1|date"/> <field name="Road_Name" /> <field name="Road_ID" /> <field name="Location" /> <field name="ADT" sum="true" sumlabel="ADT Total Count: " sort="asc|2|numeric"/> <field name="Percent_Tr" /> </fields> </relate> <relate id="2" label="Railroad Crossings" enableexport="true" icon="assets/images/i_folder.png"> <fields all="false"> <field name="Gate" /> <field name="Lights" /> <field name="Active" /> <field name="At_Grade" /> <field name="Clearance" /> <field name="Control_Mark" /> </fields> </relate> <relate id="3" label="Signs" enableexport="false" icon="assets/images/i_lego.png"> <fields all="false"> <field name="Type" /> <field name="Road_ID" /> <field name="Condition" /> <field name="P_Hyper" /> <field name="Image_" hyperlinkgridfield="true" hyperlinkgridicon="assets/images/i_lego.png" hyperlinkaliastext="Get Sign Image" linkprefix="" linksuffix="" /> <field name="post" /> </fields> </relate> <relate id="4" label="Guardrails" enableexport="true" icon="assets/images/i_clock.png"> <fields all="false"> <field name="Type" /> <field name="ID" /> <field name="Date_P" dateformat="MM/DD/YYYY" /> <field name="Date_R" dateformat="MM/DD/YYYY" /> <field name="Type_end_a" /> <field name="Type_start_a" /> <field name="Comments" /> </fields> </relate> </relates> <queryattachments>false</queryattachments> <symbology> <simplelinesymbol color="0x00ffff" alpha="0.8" width="2" /> </symbology> </layer>
<!--<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Road Centerlines</name> <url>http://gislap183/ArcGIS/rest/services/Highway/MapServer/5</url> <expressions> <expression alias="Road Name and Zip" textsearchlabel="Search by Road Name and Left Zipcode and Right Zip:"> <values> <value prompt="Example: ANDREW" isValueRequired="true">RD_NAME = '[value]'</value> <value prompt="Example: 36201" isValueRequired="true" operator="AND">ZIP_L = [value]</value> <value prompt="Example: 36201" isValueRequired="true" operator="AND">ZIP_R = [value]</value> </values> </expression> <expression alias="Road Surface" textsearchlabel="Search by Surface Type:"> <values> <value prompt="Example: Asphalt" field="Surf_Type" usedomain="true">Surf_Type = [value]</value> </values> </expression> <expression alias="Open SQL" textsearchlabel="Search by Typing Full SQL:"> <values> <value prompt="Example: RD_NAME = 'ANDREW' AND ZIP_L = 36201">[value]</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Roads</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Name</titlefield> <fields all="false"> <field name="Name" gridfield="true" sort="asc|1|string"/> <field name="Classification" gridfield="true" /> <field name="Length_" numberformat="2|,|." /> <field name="Width" gridfield="true" /> <field name="L_F_ADD" gridfield="true" /> <field name="L_T_ADD" gridfield="true" /> <field name="R_F_ADD" gridfield="true" /> <field name="R_T_ADD" gridfield="true" /> <field name="PREFIX" gridfield="true" /> <field name="PRETYPE" gridfield="true" /> <field name="RD_NAME" gridfield="true" /> <field name="TYPE" gridfield="true" /> <field name="SUFFIX" gridfield="true" /> <field name="ZIP_L" gridfield="true" /> <field name="ZIP_R" gridfield="true" /> </fields> <links> <link alias="View Mon. Ref Sheet" diablelinksifnull="true"> <![CDATA[http://somesite/gis/map/map_search/mrs_test.cfm?mrspoint={xxx}&lat={ZIP_L}&long={ZIP_R}]]> <icon><![CDATA[assets/images/w_link.png]]></icon> </link> </links> <zoomscale usegeometry="true" zoompercent="1.6" /> <autoopendatagrid>true</autoopendatagrid> <relates> <relate id="0" label="ABIMS Bridge" enableexport="true" icon="assets/images/i_hydro.png"> <fields all="true" /> </relate> <relate id="1" label="Average Daily Traffic" enableexport="true" icon="assets/images/i_flag.png"> <fields all="false"> <field name="Date_" dateformat="MM/DD/YYYY" sort="asc|1|date"/> <field name="Road_Name" /> <field name="Road_ID" /> <field name="Location" /> <field name="ADT" sum="true" sumlabel="ADT Total Count: " sort="asc|2|numeric"/> <field name="Percent_Tr" /> </fields> </relate> <relate id="2" label="Railroad Crossings" enableexport="true" icon="assets/images/i_folder.png"> <fields all="false"> <field name="Gate" /> <field name="Lights" /> <field name="Active" /> <field name="At_Grade" /> <field name="Clearance" /> <field name="Control_Mark" /> </fields> </relate> <relate id="3" label="Signs" enableexport="false" icon="assets/images/i_lego.png"> <fields all="false"> <field name="Type" /> <field name="Road_ID" /> <field name="Condition" /> <field name="P_Hyper" /> <field name="Image_" hyperlinkgridfield="true" hyperlinkgridicon="assets/images/i_lego.png" hyperlinkaliastext="Get Sign Image" linkprefix="" linksuffix="" /> <field name="post" /> </fields> </relate> <relate id="4" label="Guardrails" enableexport="true" icon="assets/images/i_clock.png"> <fields all="false"> <field name="Type" /> <field name="ID" /> <field name="Date_P" dateformat="MM/DD/YYYY" /> <field name="Date_R" dateformat="MM/DD/YYYY" /> <field name="Type_end_a" /> <field name="Type_start_a" /> <field name="Comments" /> </fields> </relate> </relates> <queryattachments>false</queryattachments> <symbology> <simplelinesymbol color="0x00ffff" alpha="0.8" width="2" /> </symbology> </layer>
George,
When you published your map service did you go to your REST Service directory and verify that the relate is listed at the bottom of that layer in the service directory?