Enhanced-Search-Widget-for-FlexViewer Part II

63068
552
04-19-2012 08:03 AM
MVP Esteemed Contributor
All,

   I am pleased to announce the next release of my eSearch Widget.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e

Version 2.5.1.7 - 4/19/2012
* Added ability to search (flat/standalone/no geometry) tables.
* This time all Zooming uses the same scaling (popup, datagrid, widget results, zoom to all).
* Added Relates icon/button to datagrids so that you can click on it in the datagrid to
  open relates choice dialog.
* Move all skins to a skins package for cleaner organization.
* Links that are not associated with a field now work.
* Ability to disable the relates tab in the fixed widget is now configurable.
552 Replies
MVP Esteemed Contributor
Laurynas,

   If you test my live preview site you will see that the search result definitely produce popups.

http://gis.calhouncounty.org/FlexViewer3.0/index.html?config=config-eSearch.xml
Reply
0 Kudos
New Contributor
Robert,
I read the PDF document and viewed you examples,
I get everything to work except popups

only place i see popup tags is : <popupsdisabled>false</popupsdisabled>

Sorry if i misunderstand something

Laurynas Gedminas
Reply
0 Kudos
MVP Esteemed Contributor
Laurynas,

   Can you share your changes to the eSearchWidget.xml? Are you using ArcGIS Viewer for Flex 3.0?
Reply
0 Kudos
New Contributor
Here you go,
I use Flex Viewer 3.0
<layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <enableprintgrid title="Selected CTD station">true</enableprintgrid>
   <name>CTD Location</name>
   <url>https://localhost:6443/arcgis/rest/services/TEST/CTD_SAMPLE_SQL3/MapServer/0</url>
   <expressions>
    <expression alias="CTD's Station" textsearchlabel="Search Station">
     <values>
      <value prompt="Example: 060_009c" userlist="C06-D05,C11-D04">Location_I = '[value]'</value>
     </values>
    </expression>

   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Traffic Cameras</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>Location_I</titlefield>
   <fields all="false">
    <field name="Study" alias="Study" gridfield="true" />
    <field name="Vessel" alias="Vessel" gridfield="true" />
    <field name="Location_I" alias="Location ID" gridfield="true" />
    <field name="DER_FILE" alias="CNV file name" gridfield="true" />
   
   </fields>
 

  
   <zoomscale usegeometry="true" zoompercent="5">10000</zoomscale>
   <relates>
   
    <relate id="1" label="MASTERTABLE" icon="assets/images/i_folder.png" >
     <fields all="false">
      <field name="Study" alias="Study" gridfield="true" />
      <field name="Vessel" alias="Vessel" gridfield="true" />
      <field name="prM" alias="Pressure [db]" gridfield="true" />


     </fields>
    </relate>
   </relates>
   <queryattachments>false</queryattachments>
   <symbology>
    <simplefillsymbol color="0x0000ff" alpha="0.5">
     <outline color="0x00ffff" alpha="0.8" width="2" />
    </simplefillsymbol>
   </symbology>
  </layer>
Reply
0 Kudos
MVP Esteemed Contributor
Laurynas,

   I do not work with https services so I can not say that this widget works with secured services using https.
Reply
0 Kudos
New Contributor III
On the Enhanced Search Widget with the userlist is it possible to have values with commas? For example:

userlist="Doe, John, Smith, Jane"

Want to treat this as 2 entries rather than four. Have not been able to figure out the syntax to embed the comma. Wondering if this is not possible in xml since it is inside the <value> tag.

Thanks.

-Michael
Reply
0 Kudos
MVP Esteemed Contributor
Michael,

   There is no way to do that as the widget is right now. You could use the uniquevalsfromfield instead.
Reply
0 Kudos
New Contributor III
Robert,

uniquevalsfromfield worked perfect. Thanks!
Reply
0 Kudos
New Contributor
Robert,

esearch widget is working with secure services.

I have other questions:
1.I am using one to many SDE relationship class, feature class (one) - nonspatial table (many).
User queries nonspatial table and clicks the relate record to see the feature class, can feature class have popup open from relate table?
2. how can i make Results table floating table like you have in eSearch Widget 3.1?

Once again thank you for your support
Laurynas
Reply
0 Kudos
MVP Esteemed Contributor
Laurynas,


  1. This is not currently possible.

  2. In the eSearchWidget.xml set the floatorfixed element to float.

<floatorfixed>float</floatorfixed><!-- possible values are fixed and float -->
Reply
0 Kudos