Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

140858
767
10-25-2010 02:13 PM
RobertScheitlin__GISP
MVP Emeritus
All Here is my next widget in the FlexViewer 2.1 series

Special thanks to Erwan Caradec for contributing to this code.

The Enhanced Search Widget extends the standard search widget with a floating data grid and a new spatial query w/buffering.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
Tags (2)
0 Kudos
767 Replies
RobertScheitlin__GISP
MVP Emeritus
Cory,

   I will be updating the pdf soon for these oversights:

WidgetManager.mxml add
import com.esri.viewer.BaseWidget;


ViewerContainer.mxml add:

public var _configData:ConfigData;

//Change this line of the postConfigHandler function.
var configData:ConfigData = event.data as ConfigData;
//to
var configData:ConfigData = _configData = event.data as ConfigData;
0 Kudos
CoryHines
Deactivated User
Thanks Robert!

I also ended up having to change 2 lines in the widgetmanager.mxml's getWidget function

from
widget.setState(BaseWidget.WIDGET_OPENED);
to
widget.setState(WidgetStates.WIDGET_OPENED);

It was still throwing a error for using a reference to a Class.

So far this seems to be working.

I hope you are enjoying the DevSummit.
0 Kudos
MattShetzer
Deactivated User
That did the trick !!!  Thanks Robert.

Matt,

    Your mapservice must be coming from something other than SDE so you have to change your SQL statement.

F_Name LIKE  '[value]*'
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,

   If you are using the default geometry service that I had in the SearchWidget.xml that goes to esri, than you probably want to point that to your own geometry service instead. If you don't have one yep then just publish one using ArcGIS Server Manager.
0 Kudos
JohnBuzzard
Deactivated User
Robert,
I was also able to get your url query solution to work with the fixes you listed above, but I am now coming across another little bug. When I do a url search that returns multiple results and hit the "show results in grid" button, the grid view opens up blank with an error back on the widget saying error #1009. Now this only happen when doing a url search. The grid view works fine when searching manually. Any ideas?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
John,

   Fix will be out for this today as soon as I compile both versions. Thanks for catching this.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Version 2.2.11 is now available.

Version 2.2.11 - 03/15/2011
  * Fixed showing the datagrid after performing a search from the FlexViewers URL
    !!!!!!Requires Mods to several FlexViewer components, See additional instructions!!!!!!
  * Enhanced Search Widget URL Search Configuration.pdf has been update for some oversights and omissions.
0 Kudos
AlexSanders
Frequent Contributor
Robert,

Is there any way of hiding the url address in the bottom of the pop up info box and replacing it with a linkfieldalias like

<linkfield linkprefix="http://someWebSite/aspx/web/details.aspx?p_entity=" linksuffix="" linkfieldalias="Click Here for More Information">parcels2.OVER_COND</linkfield>

Alex Sanders
GIS Analyst
Texas General Land Office
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alex,

   Not currently, The info popup window is not specific to the Enhanced Search widget (it belongs to the viewer in general) and there for is not customized by my widget.
0 Kudos
AlexSanders
Frequent Contributor
Thanks for the response and the great widget.

Alex Sanders
0 Kudos