Select to view content in your preferred language

Esearch Widget - Popup and Results Window Records

4661
17
Jump to solution
10-29-2012 11:08 AM
MegPeterson
Regular Contributor
Hi all -

Is it possible to show different records in the results and popup windows using the Esearch Widget? I'd like to show just one or two fields in the results window, but then show all 10 fields in the popup window, including any attachments.  The xml Robert provided is helpful with showing or not showing on the datagrid etc, but was wondering if I'm missing a popup component.

Thanks, Meg
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor

After I click the search button on Robert's widget, I'd like the mouse to revert back to the pan tool so I can scoot around the map and see the selected points. It currently stays with the action to select more features.

I think I need to do something to the function queryFeaturesGra(), along the lines of navTool.activate. That once a graphic search is excuted, the mouse changes to pan.

Any chance you know?


from the eSearchWidget documentation:

<keepgraphicalsearchenabled>true</keepgraphicalsearchenabled>

The keepgraphicalsearchenabled element is a Boolean that specifies whether or not to keep the graphical
selection tool that the user chooses active even after a selection has been made. This means that you will not
have to clear your selection and re-choose a graphical selection tool in order to make another selection. To
unselect/disable the current graphical search tool all you have to do is clear your selection. Default is false if
not specified.

Robert included an option for that in the config.  Set to false, this should do it for you,

R_

View solution in original post

0 Kudos
17 Replies
RobertScheitlin__GISP
MVP Emeritus
Meg,

   No that is not an option in the eSearch Widget, you can not assign certain fields to the popup and others to the results window. I have this type of configuration in the Identify Widget but not in the eSearch.
0 Kudos
MegPeterson
Regular Contributor
Okay - thanks for the quick response, as always.
0 Kudos
RhettZufelt
MVP Notable Contributor
Hi all -

Is it possible to show different records in the results and popup windows using the Esearch Widget? I'd like to show just one or two fields in the results window, but then show all 10 fields in the popup window, including any attachments.  The xml Robert provided is helpful with showing or not showing on the datagrid etc, but was wondering if I'm missing a popup component.

Thanks, Meg


Meg,

With the eSearch widget it is possible to have just one or two fields in the results window AND popup, but then have all 10 show up in the datagrid (fixed or float).

However, it looks like the popup is the only part that supports the attachments.  I utilize this by having the popup with only my TitleField and ALL the pertinent information in the fixed datagrid.  With interactwithdatagrid enabled, I hover over/click on the row in the datagrid, and it popups up the infowindow with TitleField and all the attachemnts that I can scroll through/select.

R_
0 Kudos
MegPeterson
Regular Contributor
That's exactly what I'm doing! Yay - not alone! Thanks for the reply. These forums are invaluable.
0 Kudos
RhettZufelt
MVP Notable Contributor
I am working with uncompiled version and I also commented out the showStateResults part of the mxml.  This way, I don't get the results window, just the data grid, then the popup (didn't think I needed the same info on the results window and popup).

R_
0 Kudos
MegPeterson
Regular Contributor
I was wondering how to do that! Thank you!
0 Kudos
MegPeterson
Regular Contributor
Hi Rhett -

I wound up doing something a bit different than commenting out the showStateResults.

In the .mxml, I added "includeinLayout="false" to the id="recVBox" area. That way after the search I could still the number of features selection see in the results window, just not all the records that the popup is also displaying.

Your initial input got me on the right track, so thanks again!
0 Kudos
RhettZufelt
MVP Notable Contributor
Glad to see you got it working.

On mine, I need to search a point, polygon, and line layer at the same time, so I make a buffered polygon layer (combining the three) that is my search layer which is not visible.  I have disabled the state results and the popup so it only highlights/zoom to the selected polygon, then when I click on it, it gives me the full popup for the respective point, line, or polygon layer and not the layer I'm actually searching against.

R_
0 Kudos
RhettZufelt
MVP Notable Contributor
More on this.

in the eSearchWidget.xml I have <disablebuttons>grid,spatial,datagrid,graphic</disablebuttons> set.

also, along with disabling the showStateResult, I moved the loader up to the text area as per here:

http://forums.arcgis.com/threads/64335-eSearch-disable-Results-state?p=223600#post223600

This way, I only have the text search options and no other icons across the top.  The loader function shows the spinner while loading, then, after load is done, it gives you the total number selected but you never navigate away from the initial search box so are ready for the next search.

[ATTACH=CONFIG]18867[/ATTACH]

R_
0 Kudos