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 selectedSelect instance of proposed linear project > Buffer linear project a specified distance > Select buildings, observation points, or bothHere 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>
Derek, What version are you talking about? Can you post your eSearchWidget.xml?
<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 landscape
Casey, I don't know what else to tell you as I have now setup a Featureclass, a table, and a relationship Class in an Enterprise Geodatabase and tested a link to a pdf from a field in the related table and it works fine....
Derek, I can not tell you much of anything without seeing your layers XML configuration in the eSearchWidget.xml.
<relate id="0" label="File" enableprintgrid="true" icon="assets/images/i_hydro.png" printtitle="Related Files"> <fields all="true" /> <zoomscale usegeometry="true" zoompercent="1.2" /> </relate>
<relate id="3" label="Signs" enableexport="false" enableprintgrid="true" 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> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate>
Derek, How exactly are you defining a hyperlink field for the relate when you are just using fields all = true?<relate id="0" label="File" enableprintgrid="true" icon="assets/images/i_hydro.png" printtitle="Related Files"> <fields all="true" /> <zoomscale usegeometry="true" zoompercent="1.2" /> </relate>If you want a hyperlink in the related data then you have to tell it which field is going to be the hyerlinkfield.Like this: <relate id="3" label="Signs" enableexport="false" enableprintgrid="true" 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> <zoomscale usegeometry="true" zoompercent="1.6" /> </relate>
Sorry...meant to say all I used was hyperlinkgridfield="true".I attached a screenshot of the results which is now showing relates, however, the record height is very small. Have you seen that?[ATTACH=CONFIG]30290[/ATTACH]
[RPC Fault faultString="Invalid or missing input parameters." faultCode="400" faultDetail=""]
<!-- UI elements --> <widget left="0" right="0" bottom="0" url="widgets/eSearch/SearchWidgetFixedDG.swf" config="widgets/eSearch/SearchWidgetFixedDG.xml"/> <widget left="10" top="50" config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/> <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
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.