How do I go about getting the dropdown for "Search Entities of:" populated? Right now, I have one layer on the Text Search tab and the user can pick one of the features within that layer from a dropdown populated using "uniquevalsfromfield". Then, I want them to be able to use the Spatial Search tab to be able to specify a buffer and choose a different layer (from a choice of two) and select any entities of that chosen layer that are within the buffer. Ideally, they would have the option to select "all" so that either of the two layers within the buffer are selected
Select instance of proposed linear project > Buffer linear project a specified distance > Select buildings, observation points, or both
Here is the code I have now that successfully creates the Text Search tab for proposed linear projects, and creates the Spatial Search tab but with only the proposed linear projects layer in the "Search Entities of" dropdown.
Thanks for any help you can provide.
<layer>
<token/>
<definitionexpression/>
<enableexport>true</enableexport>
<name>Proposed Project Search</name>
<url>http://152.1.13.55/arcgis/rest/services/NERI/GIS550_Midterm_FeatureService_V1/MapServer/2</url>
<expressions>
<expression alias="Proposed Project Search" isvaluerequired="true">
<values>
<value prompt="Choose a Project - Example: test1" uniquevalsfromfield="project_name" isvaluerequired="true" autosubmit="false" operator="AND">project_name = '[value]'</value>
</values>
</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select Proposed Project</graphicalsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<titlefield>Proposed_Project</titlefield>
<fields all="false">
<field name="project_name" alias="PROJECT NAME" visible="true"/>
</fields>
<links/>
<zoomscale usegeometry="true" zoompercent="1.2"/>
<autoopendatagrid>true</autoopendatagrid>
<queryattachments>false</queryattachments>
<relates/>
<symbology>
<picturemarkersymbol url="assets/images/i_target.png" height="18" width="18" xoffset="0" yoffset="0"/>
</symbology>
</layer>
<spatialSearchlayer>true</spatialSearchlayer>
Derek,
It is just one of those small gotchas of Flex... Case Sensitivity. All the tags/elements and attributes in the eSearchWidget.xml are lower case.<spatialSearchlayer>true</spatialSearchlayer>
If I change the print settings to landscapeHow are you doing that as the print preview dialog shold not present you with that option? If I set the printers preferences in Windows to do landscape all the time and then print the datagrid it works fine in Chrome though.