<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>
<value prompt="Select from the following" uniquevalsfromfield="VALVEID" isvaluerequired="true" autosubmit="true">VALVEID = '[value]'</value>
Suely, Actually since I responded to your post I have released a newer version that supports selecting related features on the map from a table.
Suely, Searching a related table is supported but it is not currently supported to select the related features in the map for the table that is searched. This enhancement is being looked at though.
Jay, are you sure you are using a version that supports the autosubmit attribute? It was introduced in Version 3.1.8 - 2/5/2013.
Jay, If you are going to have multiple value tags for one particular expression parent than you need to think of them as you would any SQL statement in ArcMap. For example you first value needs an operator like AND, also each subsequent value needs an operator except for the last value in your values parent. <expression alias="Database" textsearchlabel="Search Projects:" isvaluerequired="true"> <values> <value prompt="Project Name" isvaluerequired="false" operator="AND" autosubmit="false">upper(Project_Name) LIKE upper('%[value]%')</value> <value prompt="Project Number" isvaluerequired="false" operator="AND" autosubmit="false">Contract_Number LIKE '%[value]%'</value> <value prompt="Detailed Job Type" isvaluerequired="false" userlist="Administration,Geosciences,Geostructural,all" autosubmit="false">Department = '[value]'</value> </values> </expression>
<expression alias="Database" textsearchlabel="Search Projects:" isvaluerequired="true"> <values> <value prompt="Project Name" isvaluerequired="false" operator="AND" autosubmit="false">upper(Project_Name) LIKE upper('%[value]%')</value> <value prompt="Project Number" isvaluerequired="false" operator="AND" autosubmit="false">Contract_Number LIKE '%[value]%'</value> <value prompt="Detailed Job Type" isvaluerequired="false" userlist="Administration,Geosciences,Geostructural,all" autosubmit="false">Department = '[value]'</value> </values> </expression>
<enabledrawgraphicbutton>false</enabledrawgraphicbutton> <enablebuffergraphicbutton>false</enablebuffergraphicbutton> <enablelocategraphicbutton>false</enablelocategraphicbutton>
includeInLayout="false" visible="false"
Yasar, You have me pretty confused with that question... Related data is ONLY shown in the datagrid... The only thing that is shown in the widget results is an initial layer or table search results, not relate results.
Andy, Well that is a pretty unique formatting need. I currently do not have anything that supports that (and likely won't in the future). For the datagrid this is something that could be handled with a label function on a GridColumn. Not sure if you are working with source code or not.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.