Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part II

113089
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
RhettZufelt
MVP Notable Contributor
Was testing the add to/remove from and have some input that might help.

Noticed that the graphical search is working as Michelle described, creates a new selection every time.

However, the text search is working "mostly".  I can select with a text search, then add to/remove from it and it will add/remove the new items to the datagrid, results, but will NOT add it to the fixed DG...

In case this helps narrow it down,

R_
0 Kudos
MichelleKinseth
Emerging Contributor
Michelle,

   Looks like 3.1.5 has some major issue. My only recomendation at this point is to downgrade to 3.1.4. I am in the middle of some other widget updates and am not sure when I will get back to the eSearch.


Okay - that's easy enough to do. Thanks for getting back to me!
0 Kudos
RhettZufelt
MVP Notable Contributor
More on this, not sure if it's my syntax, or an issue that might help figure it out.

If I have a field setting as such:

<field name="PHOTO_ID" alias="PHOTO" hyperlinkgridfield="true" hyperlinkaliastext="Photo" hyperlinkgridicon="assets/images/i_camera.png"/>


I can click on the camera icon in the results window and it will open the hyperlinked photo in a new web browser.  However, if I click on the camera icon in either the fixed or float DG, I get the following error, THEN it will still open the image in a new browser once I dismiss the error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at widgets.eSearch::eSearchWidget/clickSearchRelateResult()
 at widgets.eSearch::SearchWidgetFloatDG/clickRow()
 at widgets.eSearch::SearchWidgetFloatDG/__resultsGrid_gridClick()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at spark.components::Grid/dispatchGridEvent()
 at spark.components::Grid/dispatchGridClickEvents()
 at spark.components::Grid/grid_mouseDownDragUpHandler()
 at MethodInfo-5341()


However, if I set the field tag to this:

<field name="PHOTO_ID" alias="PHOTO" hyperlinkgridfield="true" hyperlinkaliastext="Photo" />


I don't get the icon in the grid, just the text, BUT, it will let me click on it and opens in new browser with no error.

So to summarize, it doesn't appear as if the hyperlinkgridicon is working correctly from either of the datagrids, only the results window.

R_

PS, can repeat with 3.1.2, 3.1.4, and 3.1.5 - no others tested 🙂
0 Kudos
SladeBridges
Emerging Contributor
Slade,

   I am still struggling with why you are experiencing this issue. I have had no other reports of any issue close to this. Can you try and add the new symbology tag to your layers?

            <symbology>
                <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />
            </symbology>


Robert,
does this tag need to be added to every layer? Can it be added in the symbols tag? I have a <symbols> tag not a <symbology> tag, this may be the issue.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Slade,

  Actually hang tight as I might have found the issue and it will be addressed in 3.1.6
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   There is a new version available:

Version 3.1.6 - 1/25/2013
* Fixed major bug introduced in 3.1.5 with adding and removing form selections
* Fixed bug, when clicking on a popup the datagrid opens.
* Fixed bug when using a hyperlink field in the datagrid with a hyperlinkgridicon specified and error occurs.
0 Kudos
ChrisA
by
Occasional Contributor
This widget is exactly what I'm looking for, thank you.  I added the "For_AppBuilder3.1" archive to the ArcGIS Viewer for flex 3.1 through the Manager Custom Widgets page.  I modified one of the layers with my own service url and field name and removed all the other layers just for testing.  I continue to get the following error when I run the widget.  Does anyone have any idea what my problem could be ?  I'm pretty new at flex.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.viewer.managers::WidgetManager/createWidget()
at com.esri.viewer.managers::WidgetManager/runWidget()
at com.esri.viewer.managers::WidgetManager/widgetReadyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfo/readyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/docFrameHandler()
at mx.core::FlexModuleFactory/docFrameListener()

Thanks,
Chris A.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

   It is hard to tell, you might have removed something that is needed in the eSearchWidget.xml file. Can you search your PC for the eSearchWidget.xml file and zip it and attach it for review?
0 Kudos
AndyCowx1
Emerging Contributor
Robert,

On face value, the problem I'm having seems quite simple but after speaking to ESRI Tech Support they told me not possible with the Out-Of-The-Box config.

I'm trying to use the Search Widget to allow the user to enter a value (x), I then want to query 2 separate layers using that value.

The slight kink is that on layer 1 I want to show all features where "field = x", on layer 2 I want to show all features where "field like x%"

I realize that I could add 2 Out-Of-The-Box search widgets but would like to avoid having to ask the users to enter the same data twice.

In short, one dialog with the user will filter two layers on the map.

Make sense ?

Thanks,

Andy
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andy,

   This thread is dealing with the Enhanced Search Widget and not the OTB Search Widget. But to answer your question what you are attempting can not be done with out writing code to handle the Query of two specific REST endpoints and then more code to handle displaying the results of both querys.
0 Kudos