Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part II

136783
552
04-19-2012 08:03 AM
RobertScheitlin__GISP
MVP Emeritus
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
RobertScheitlin__GISP
MVP Emeritus
Ryan,

   Well, I have no good news... I am using the returnIdsOnly parameter in the uniquevalsfromfield and that was introduced in ArcGIS Server 10. So no you can not use uniquevalsfromfield  on a 9.3.1 map service. I will update my PDF to make this clear in the next release.
0 Kudos
RhettZufelt
MVP Notable Contributor
Ryan,

If you need a work around, at the bottom of this post, http://forums.arcgis.com/threads/67106-Enhanced-Search-Widget-Loading-userlist-from-attributtable  I posted my python script that gets the uniquevalues and updates the userlist with it (actually updates the eSearchWidget.xml file).  not real-time, but can be scheduled to keep your data semi up to date.

This code is for arcpy, but shouldn't be too difficult to convert to gp.

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Another update is released:

Version 3.1.2 - 1/2/2013
* When features are added to the selection they appear at the top of the Widgets results list.
* When features are removed the order of the results remains the same minus the removed results.
0 Kudos
RyanCoghlin
Deactivated User
Thank you both to Robert and Rhett for the information. We will soon be upgrading to 10.1 so it wasn't horrible news that I can't use uniquevalsfromfield on a 9.3.1 map service. Again, thanks!
0 Kudos
SladeBridges
Emerging Contributor
Robert,
I have attached a copy of my xml in a word document. I don't think i have anything turned off in the xml.
0 Kudos
Hwa_SaupLee
Occasional Contributor
I am trying to add this widget on my viewer without much success. 
I think I followed the steps in the document but so far cannot able to add this widget to the viewer.
I am using complied flex viewer 3.1.

add widget in the UI element before the overview map widget
and also add widget inside of widgetcontaniner and make it preload.

but not opening.

can you tell me what I am missing?
Thank you.
0 Kudos
RhettZufelt
MVP Notable Contributor
you would only add to the UI elements if you are planning on using the FIXED data grid and would be similar to:

    <widget left="0" right="0" bottom="0" url="widgets/eSearch/SearchWidgetFixedDG.swf" config="widgets/eSearch/SearchWidgetFixedDG.xml"/>


The actuall eSearchWidget would be put in the widgetcontainer as such:

        <widget label="Search" left="600" top="50" height="450" preload="open"
                icon="assets/images/i_search.png"
                config="widgets/eSearch/eSearchWidget.xml"
                url="widgets/eSearch/eSearchWidget.swf"/>


As long as you have copied the compiled code to the widgets/eSearch folder, it should find it and open it.
  Should also put a button on the toolbar to re-open it if needed.

R_
0 Kudos
Hwa_SaupLee
Occasional Contributor
Thank you for your replay.

I did exact the same way but not working. the title bar is blank and widgets are not visible. 
I used the complied 3.1 viewer and add the eSearch widget to the folder and edited configuration file but still not working.
Should I use 3.0 version?
0 Kudos
Hwa_SaupLee
Occasional Contributor
my mistake.
I got the one with v3.0 before.  Now I got the v3.1 and it works great.
thank you for great widget.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Slade,

   In your widget results do you see the binoculars? Like this?
[ATTACH=CONFIG]20626[/ATTACH]
0 Kudos