Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part II

137244
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
StevenFoley
Occasional Contributor
Steve,

   Flex Viewer is a Internet application and thus should not be using UNC paths directly (even if the app is only available on your intranet). You need to create a virtual directory that uses the UNC path as its source that way you have a REAL url to use in your link field.



Makes Sense to me.  Thanks very much for the info.
0 Kudos
MichelleKinseth
Emerging Contributor
Michelle,

   Do you mean that you manually (in the code made the button not visible) or you used the method of setting the multipartgraphicsearch to false in the XML?


I was able to do both, actually, but when I couldn't tell what was affecting the changes I started over with a fresh version of the widget. However, the search button does not go away when I change the <multipartgraphicsearch> tag to false in the XML. At this point I've edited nothing else in the widget other than the XML's. The search does not execute automatically either, so I don't know if I'm missing something obvious.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michelle,

   The only thing that the multipartgraphicsearch equals false does is sets the eSearch Widgets GUI to not have the "enable multi-part graphics" checked by default. Is that check box checked or not in your GUI? what happens when you physically un-check it and then draw a graphic on the map?
0 Kudos
MichelleKinseth
Emerging Contributor
I was able to do both, actually, but when I couldn't tell what was affecting the changes I started over with a fresh version of the widget. However, the search button does not go away when I change the <multipartgraphicsearch> tag to false in the XML. At this point I've edited nothing else in the widget other than the XML's. The search does not execute automatically either, so I don't know if I'm missing something obvious.


Ah, I see. When I physically uncheck the box and draw a geometry the search executes and I get results. I don't know why it's not working in the code. Let me try this once more. Very well could be (likely is) user-error on my part.
0 Kudos
MichelleKinseth
Emerging Contributor
As suspected, user-error on my part. There are TWO <multipartgragpicsearch> tags in the XML. missed one of them first time through. Thanks for your help, Robert!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   A new version is now released:

Version 3.0.13 - 10/25/2012
* You can now print from the datagrid (floating or fixed). The Print output is properly paginated
  based on the number of columns (and their widths) and the number of rows. The print output has
  several configurable option for header colors, footer elements, etc. The print honors any sort
  applied to the datagrid.
* Export to csv and text now honors the sort applied to the datagrid.
* Fixed bug with resetting required fields when the search is cleared.
0 Kudos
MichelleKinseth
Emerging Contributor
Robert, can you confirm to me that the eSearch URL Search cannot cycle through multiple layers? If I'm understanding your documentation for this feature correctly, it can only perform the URL search on one layer (the top one in the config). Correct?
Thanks, Michelle
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michelle,

   No the top layer in the config file is not the only one that can be searched.
The search will be performed on the first layer and first expression of that layer in your
SearchWidget.xml file by default if you do not specify otherwise.


http://gislap134/FlexViewer3.0/index.html?search=R1&slayer=0&exprnum=0&showdatagrid=true
0 Kudos
MichelleKinseth
Emerging Contributor
Michelle,

   No the top layer in the config file is not the only one that can be searched.


http://gislap134/FlexViewer3.0/index.html?search=R1&slayer=0&exprnum=0&showdatagrid=true


ah, I misunderstood the text. thanks.
0 Kudos
RhettZufelt
MVP Notable Contributor
Odd behaviour using uniquevalsfromfield tag.

I have noticed that if you use more than one uniquevalsfromfield in an expression, it will only populate ONE of the dropdown boxes.  You need to switch to a different search dropdown, then back, and it will populate the "next" dropdown.  If you have three, you need to switch from/to the layer three times to get all the dropdowns to populate.

Short term test map here:

http://www.easbio.com/otb/

zoning layer has three uniquevalsfromfield value expressions.  Need to switch back and forth to get them all to populate.

R_

also, I see that the "blank" value added to the list when isvaluerequired="false" is only for the userlist.  Would be a nice "enhancement" for the uniquvalue list as well.

I added this to the PaginQueryTask.as as it does what I am after.  However, this, of course, ALWAYS adds the blank value regardless of isvaluerequired or not.

   //loop over all the properties in the tempPropertyArray
   distinctValuesCollection.addItem({value: " ", label: " "});
   for (var propertyName:String in tempPropertyArray) {
0 Kudos