Selection Widget Updated Version

41582
146
05-12-2011 05:24 AM
MarkHoyland
Occasional Contributor II
The Selection widget has a "Select by Attributes" and "Select by Location" option similar to ArcGIS.
Widget link: http://www.arcgis.com/home/item.html?id=20ed6af9ab204548bbf092d51b51fef8

Version 1.5 of the widget replaces version 1.0

Enhancements and fixes include:
*Each time a query layer was added it was also being added to the TOC. This has been fixed.

*When resizing the widget, the datgrid would not resize properly. This has been fixed.

*Uses paging for selection of unique value list. This means that ALL values will be parsed regardless of the ArcGISServer setting to limit responses. There is an option to ESC out of a large query. (This is only for the Unique list, not getting features).
I have included an ESRI TaxParcel Layer that has 18,000+ records. Get Unique Values on the PSTLSTATE field to see this in action.
Available on my example site. The URL is on the Widget download page.

*Aliases can now be used. It will now use the Alias as set in the Featureclass. You can also override the Alias in the SelectionWidget.xml config file.

*ArcGis layers that have joined tables will now work with fully qualified field names. (thanks Dasa for the idea)

*Styling for selection colours has been documented in the SelectionWidget.xml config file (example provided).

*Styling for datagrid has been changed. It can now also be styled in SelectionWidget.xml config file (example provided). (thanks Mehul for the idea)

*Changed initial uniquevalue query to use "text='%'" instead of "where '1=1'" for Mike.:)

*You can now override scale range for layers.

*Link field now has a prefix/suffix option in the SelectionWidget.xml config file (naming convention the same as Robert SCheitlin's esearch widget)

*Shape_area and Shape_length can be used in the fields.

Link to previous thread :http://forums.arcgis.com/threads/24151-Selection-Widget-for-SFV2.2-(with-a-query-builder)
Tags (2)
0 Kudos
146 Replies
AdamRepsher
Occasional Contributor III

When resizing the widget, the datgrid would not resize properly. This has been fixed.


BRAVO!  All of the modifications are wonderful -- and this specific fix, is something that I was attempting to fix myself.  Not being a programmer, I have been unsuccessful, to say the least.  Wondering what was done and where....

Thanks much!
--Adam
0 Kudos
MarkHoyland
Occasional Contributor II
Hi Adam, This was driving me mad for ages. It turned out all I needed was to set the datagrids minwidth property!
(in the selectionresult.mxml file.) I could then change the width and height of the datagrid to 100%.
0 Kudos
francescodi_vito
New Contributor
Hi Mark,
i'm reading the post but i have a question for the layer with joined table.
The query builder works on layers joined with a relationship class 1-M?
thanks
0 Kudos
francescodi_vito
New Contributor
Hi Mark!
I have download the ultimate version of selection widget. I try to work with compiled and uncompiled version, but have a problem. When i set the fields and click on get value, the values of field are not load
Why?
0 Kudos
MarkHoyland
Occasional Contributor II
Hi Francesco,
It is not set up to work with relationships.

It works with data that has a join set in ArcGIS.
0 Kudos
francescodi_vito
New Contributor
Hi Mark,
thanks. You wrote me that the operations with relationship will be available on version 2 of your widget. When will be available this version?
But your widget it's good......a great work
Complimenti
Thanks
0 Kudos
JayGeisen
New Contributor III
Mark,

This looks great. I'm definitely looking forward to trying it out.  Will it work with SFV 2.3.1?

Thanks,
Jay
0 Kudos
CurtisVance
New Contributor II
Hello Mark / All,

Great job on the selection widget, it's impressive.  I managed to deploy version 1.0 with our data hitch free.

However, I have recently upgraded to the new version and am having some issues.  The unique field values list box does not populate for any of my own layers that I am using with the widget.  The uniqueID status label quickly flashes up stating that the function is processing "0 of 0" and the list box is left empty.  The tool still works if I enter my own search parameters.  The default servers you set up with the widget worked fine and the unique values list populated no problem.

I am running version 2.3.1 of the viewer, ArcGIS Server 9.3.1, and an SDE database model.  There are no joins on any of the layers. Again, version 1.0 worked fine.

Is anyone else running into this issue? Any feedback is greatly appreciated.  The fixes in 1.5 are great and I would like to run this version.

Thanks,

Curtis
0 Kudos
MarkHoyland
Occasional Contributor II
I am running version 2.3.1 of the viewer, ArcGIS Server 9.3.1, and an SDE database model.  There are no joins on any of the layers. Again, version 1.0 worked fine.


Hi Curtis,
Getting unique values now uses objectids in the querytask, which allows for the paging in the query. Objectids are new with ArcServer 10.xx. Thats why 9.3 data isnt being returned.
0 Kudos