<multipartgraphicsearch>true</multipartgraphicsearch>
Michelle, Sure the thing about have to click the search button is because you have the enable multi part graphic search checked in the GUI. If you want to disable this then in the eSearchWidget.xml change this line to false:<multipartgraphicsearch>true</multipartgraphicsearch>
As far as code changes to make to the eSearchWidget.mxml to remove the "include text query in selection criteria" you will have to search for this id "includeTextQuery" and add a visible and includeinlayout properties and set both to false.
I was able to remove the "Search" button
<multipartgraphicsearch>false</multipartgraphicsearch>
All, The next new release is available:Version 3.0.11 - 10/17/2012* Added uniquevalsfromfield as a source for search drop down (like usedomain and userlist options). This now queries the map service for unique values of a field to use in the dropdown.
Michelle, There is no telling really. I can only support the widget in an unmodified state. Once you being making changes it is not in the best interest of my time to support the widget any longer. What do you mean by this? if you set<multipartgraphicsearch>false</multipartgraphicsearch> than you do not have to do anything else to remove the search button, and once you finish drawing your geometry the search will automatically execute.
uniquevalsfromfield="ZONING_TYPE"
<layer> <definitionexpression></definitionexpression> <enableexport>true</enableexport> <name>Search</name> <url>http://gis01.wch-rcc.com/ArcGIS/rest/services/SDCV_custom/wastebuffers/MapServer/0</url> <expressions> <expression alias="Designated Area" textsearchlabel="Pick an Area from the List:" isvaluerequired="false"> <values> <value userlist="100BC,100D,100F,100H,100K,100N,300,600,all" isvaluerequired="false">summary_DESG_AREA = '[value]'</value> <value uniquevalsfromfield="summary_DESG_AREA " isvaluerequired="false">summary_DESG_AREA = '[value]'</value> </values> </expression> <expression alias="Latest Activity " textsearchlabel="Select an Activity from the List:" isvaluerequired="false"> <values> <value uniquevalsfromfield="summary_Note" isvaluerequired="false">summary_Note = '[value]'</value> <value userlist="Closure,Confimatory,RTD,all" isvaluerequired="false">summary_Note = '[value]'</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Zoning</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>SITECODE</titlefield> <fields all="false"> <field name="SITECODE"/> <field name="SITECODE" alias="SiteCode" gridfield="true" gridfieldonly="true"/> <field name="summary_Date" alias="Activity Date " gridfield="true" gridfieldonly="true" dateformat="MM/DD/YYYY" useutc="true" /> <field name="summary_Note" alias="Latest Activity" gridfield="true" gridfieldonly="true" /> <field name="summary_SortOrder " alias="Sort Order" gridfield="true" gridfieldonly="true"/> <field name="summary_LVL1Stage" alias="Level 1 Stage" gridfield="true" gridfieldonly="true"/> <field name="summary_SPIF_reclass" alias="SPIF Reclass" gridfield="true" gridfieldonly="true"/> <field name="summary_SPIF_backfill" alias="SPIF Backfill" gridfield="true" gridfieldonly="true"/> <field name="summary_SPIF_Reveg" alias="SPIF Reveg" gridfield="true" gridfieldonly="true"/> <field name="summary_TPA_Milestones" alias="Milestone" gridfield="true" gridfieldonly="true"/> <field name="summary_Milestone_Date" alias="Milestone Date" gridfield="true" gridfieldonly="true" /> <field name="summary_DESG_AREA" alias="Designated Area " gridfield="true" gridfieldonly="true" sort="asc|1|string"/> <field name="summary_WBS_6" alias="WBS_6" gridfield="true" gridfieldonly="true"/> <field name="summary_FINAL_ROD_DEC_UNIT" alias="summary_FINAL_ROD_DEC_UNIT" gridfield="true" gridfieldonly="true"/> <field name="summary_ContractMod" alias="ContractMod " gridfield="true" gridfieldonly="true"/> </fields> </layer>
uniquevalsfromfield="summary_DESG_AREA "
<layer> <definitionexpression></definitionexpression> <enableexport>false</enableexport> <enableprintgrid>true</enableprintgrid> <name>Traffic Cameras</name> <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2</url> <expressions> <expression alias="Traffic Camera Description" textsearchlabel="Search Traffic Cameras by Location..."> <values> <value prompt="Example: I-71" userlist="I-71,I-64">upper(DESCRIPTION) LIKE upper('[value]%')</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Traffic Cameras</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>DESCRIPTION</titlefield> <fields all="false"> <field name="DESCRIPTION" alias="Description" gridfield="true" /> <field name="URL" alias="Show Image" hyperlinkgridfield="true" hyperlinkaliastext="Get Traffic Image" visible="false" /> <field name="ONLINE" alias="Online" gridfield="true" gridfieldonly="false" /> <field name="LAST_UPDATED" alias="Last Updated" gridfield="true" gridfieldonly="false" dateformat="MM/DD/YYYY" useutc="true" /> </fields> <links> <link alias="View Traffic Photo" diablelinksifnull="true"> <![CDATA[{URL}]]> <icon><![CDATA[assets/images/i_camera.png]]></icon> </link> </links> <zoomscale>5000</zoomscale> <queryattachments>false</queryattachments> </layer>
var i:int = (cboLayerText.selectedIndex < 0) ? 0 : cboLayerText.selectedIndex; if (i == -1){ if(configSearchText[0].layer){ queryLayer = configSearchText[0].layer; }else{ queryLayer = configSearchText[0].table; } }else{ if(configSearchText.layer){ queryLayer = configSearchText.layer; }else{ queryLayer = configSearchText.table; } } if (queryLayer && !queryLayer.loaded){ queryLayer.addEventListener(LayerEvent.LOAD, queryLayer_loadHandler); function queryLayer_loadHandler(event:LayerEvent):void { popCBwithUnique(targetField, sItemVal); } return; } this.cursorManager.setBusyCursor();
the related table comes up but nothing is populated in the table.
Steve, You have a couple of thing wrong here (all covered by the documentation):This is an example of what a layer configuration should look like: <layer> <definitionexpression></definitionexpression> <enableexport>false</enableexport> <enableprintgrid>true</enableprintgrid> <name>Traffic Cameras</name> <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2</url> <expressions> <expression alias="Traffic Camera Description" textsearchlabel="Search Traffic Cameras by Location..."> <values> <value prompt="Example: I-71" userlist="I-71,I-64">upper(DESCRIPTION) LIKE upper('[value]%')</value> </values> </expression> </expressions> <graphicalsearchlabel>Use one of the graphical search tools to select Traffic Cameras</graphicalsearchlabel> <spatialsearchlayer>true</spatialsearchlayer> <titlefield>DESCRIPTION</titlefield> <fields all="false"> <field name="DESCRIPTION" alias="Description" gridfield="true" /> <field name="URL" alias="Show Image" hyperlinkgridfield="true" hyperlinkaliastext="Get Traffic Image" visible="false" /> <field name="ONLINE" alias="Online" gridfield="true" gridfieldonly="false" /> <field name="LAST_UPDATED" alias="Last Updated" gridfield="true" gridfieldonly="false" dateformat="MM/DD/YYYY" useutc="true" /> </fields> <links> <link alias="View Traffic Photo" diablelinksifnull="true"> <![CDATA[{URL}]]> <icon><![CDATA[assets/images/i_camera.png]]></icon> </link> </links> <zoomscale>5000</zoomscale> <queryattachments>false</queryattachments> </layer>
Steve, Flex Viewer is a Internet application and thus should not be using UNC paths directly (even if the app is only available on your intranet). You need to create a virtual directory that uses the UNC path as its source that way you have a REAL url to use in your link field.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.