Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

140648
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
RyanResella
New Contributor
Robert,

Thanks for all your work on this widget, it has been extremely useful.

What are your thoughts about hosting the code on Github?  That way people can contribute code, update, fixes etc.

Also what about using Github to manage all the issues, bug reports and the Github wiki to manage updates?  This forum thread is great but its been increasingly difficult to read through the thread to see if the problem has been solved or if the issue has been reported.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Caitlin,

    Everything you describe is possible using the eSearch widget. If you use the live demo site here:

http://gis.calhouncounty.org/FlexViewer2.4/index.html?config=config-eSearch.xml

Follow these steps to see almost exactly what you describe in action:


  1. Do a text search on Police facilities for "PUBLIC INTEGRITY"

  2. Buffer that by 5 Feet and then Select entities of: Parcels and click "intersected by"

  3. Now buffer that parcel by 500 Feet and Select entities of: Parcels and "click intersected by"

  4. Now all parcels within 500 Feet of the original parcel are selected.

  5. If the Parcel layer was setup to have a datagrid you could now export the results to CSV.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ryan,

  I have not considered that. I will look into the possibility though.
0 Kudos
JeffPerkins
Occasional Contributor
Im using the eSearch and would like to render the linkprefix of a <field> based on a yes or no attribute of another field. So,

  If  "document" = yes
then linkprefix = true
otherwise linkprefix = false



<titlefield>theID</titlefield>
     
<fields all="false">
<field name="theID" gridfield="true" hyperlinkgridfield="true"
           linkprefix="http://somewhere/ApplySimpleSearch?value1="
  linksuffix="&D1=Collection-34"/>

<field name="Document"  gridfield="false" />

</fields>
        <linkfield linkprefix="http://somewhere/ApplySimpleSearch?value1="
           linksuffix="&D1=Collection-34">theID</linkfield>
  


Is there a pratical way of accomplishing this?

Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   No way that I can think of unless you hard code and if statement in the code to check for that particular layer and them if the document field has a yes...
0 Kudos
JonathanWatson
Emerging Contributor
Robert,

Thanks for this and many other great tools!  I haven't had a chance to read all the posts in this thread, but what about this feature request?

Can you add in something like <gridfields all = "true"> that would automatically add all the fields of a given layer to the Data Grid?  It could work in conjunction with the <fields all="false"> so that you could specifically list out the fields you want to show in the 1st search form, then the <gridfields all = "true"> would show all the fields in the Data Grid.  It would be nice if it would pick up the "dateformat=" if specified, but I'll take anything at this point to keep from having to type in all the field names.

This would help an organization like ours that has many layers with many different fields.  The fields do change from time to time too.

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jonathan,

   Yes that has been brought up and the development effort and cost is to significant to justify it for me.
0 Kudos
CaitlinBernier
Emerging Contributor
Caitlin,

    Everything you describe is possible using the eSearch widget. If you use the live demo site here:

http://gis.calhouncounty.org/FlexViewer2.4/index.html?config=config-eSearch.xml

Follow these steps to see almost exactly what you describe in action:


  1. Do a text search on Police facilities for "PUBLIC INTEGRITY"

  2. Buffer that by 5 Feet and then Select entities of: Parcels and click "intersected by"

  3. Now buffer that parcel by 500 Feet and Select entities of: Parcels and "click intersected by"

  4. Now all parcels within 500 Feet of the original parcel are selected.

  5. If the Parcel layer was setup to have a datagrid you could now export the results to CSV.



Thanks Robert.  I had just missed the final click intersected by thinking that the search distance was going to select as well.  All is well.
Thank you very much!

Caitlin
0 Kudos
philippschnetzer
Frequent Contributor
Robert,

I'm using v 2.4.0.13 and now all my attributes are surrounded by "" when I export to .csv or .txt.

I have not changed from the default <csvSeparator>,</...>

Any reason you can think of why this might be happening?

Thank you!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   Nope, there was no change to that code whatsoever. Did you update your MS Office recently?
0 Kudos