Solved! Go to Solution.
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Sites</name> <url>https://XXXXXXX/ArcGIS/rest/services/Test/Test_Map/MapServer/2</url> <expressions> <expression alias="Name"> <values> <value userlist="1,2,3,4">upper(Name) = upper('[value]')</value> </values> </expression> <expression alias="Parcel ID Number" textsearchlabel="Search Parcel ID#:"> <values> <value prompt="Example: 2102924430038 or 2102%"> PID_NO like '[value]'</value> </values> </expression> <expression alias="Address" textsearchlabel="Building Number and Street Name:"> <values> <value prompt="Example: 801">BLDG_NUM = '[value]'</value> <value prompt="Example: 2ND AVE N">AND upper(STREETNAME) = upper('[value]')</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Site</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>Name</titlefield> <fields all="false"> <field name="Name" alias="Site Name" gridfield="true" /> <field name="BLDG_NUM" alias="Building Number" gridfield="true" /> <field name="STREETNAME" alias="Street" gridfield="true" /> <field name="City" alias="City" gridfield="true" /> <field name="PID_NO" alias="Parcel ID#" gridfield="true" /> </fields> <links /> <zoomscale usegeometry="true" zoompercent="1.6" /> <autoopendatagrid>false</autoopendatagrid> <relates> <relate id="0" label="Documents" enableexport="true" icon="assets/images/i_folder.png"> <fields all="true" /> </relate> </relates> <queryattachments>false</queryattachments> </layer>
<url>https://XXXXXXX/ArcGIS/rest/services/Test/Test_Map/MapServer/2</url>
Aaron,
So how is the token being provided to me in this situation? Is it part of the search layers url or did you already have to login using the identity manager?
<url>https://xxxxx.us/SQL/rest/services/WIARNG_Facilities/Fac_Basemap_WMAS_Cache/MapServer/0/?token=qNzOqxLPck6visgtQ9wY-NLoaT35el4VYrb7KKcCpbe1vsVTZs3WcvzI79B5w_hE</url>