Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

138373
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
RobertScheitlin__GISP
MVP Emeritus
wowallace & Nestor,

   Try the latest version and see if it resolves each of your issues.
0 Kudos
JustinFultz
Regular Contributor
Robert,

Great widget! It is my understanding the version 2.1.4 should show the coded domain values rather than the actual database value.  I am not seeing this in the datagrid.  Is there a specific statement that has to be added to the SearchWidget.xml config file?

Thx!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

   Your right it is not working for the datagrid just the actual search widget results right now I will have to fix that. Stay tuned for another release.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

   Since only 4 people downloaded version 2.1.4 before you informed me of the issue with the grid I did not feel like sequencing the version number again so even know it still says 2.1.4 it has the coded values in the grid fixed. Just make sure when you download you have a file named eSearch2.1.4_.zip notice the underscore before the dot zip.
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
Nestor,

   Is this only happening in the floating grid or in the widget results as well?


Hi Robert.

I installed the latest version 2.1.4_ with no luck.
It is happening with both the floating grid and the widget results.

If this might help, the Identify Widget works ok with the prefix and suffix.

Nestor.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nestor,

   It will work if you add the linkprefix and linksuffix to the field element that is the hyperlink field.
0 Kudos
JustinFultz
Regular Contributor
Robert,

2.1.4_ worked perfect for me for the domain values in the datagrid.

Is there a way to use all layers in the graphical search, like you can do in ArcMap so that your user wouldn't have to specify layers to search for?  I grouped the layers and used the group layer identifyer as the url, but got errors when I would try to use a search box on the map.  Any ideas?

Great widget!  Thanks for your help!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Justin,

    The search widget uses the querytask which is layer specific. You could create a hybrid that uses findtask instead for the graphical search but I don"t have any plans for this.
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
Nestor,

   It will work if you add the linkprefix and linksuffix to the field element that is the hyperlink field.


Good Morning Robert,
Hope you had a great GIS Day.

Still no luck even with the linkprefix and suffix in the field element. All it returns when you click on or even displayed in the popup is the contents of the PAPA field which is the 17 digit Property Control Number. It just seems to ignore the linkprefix statement. As I stated earlier, it works perfectly in your Identify widget. Here is the code again in case I am missing something, which is a good possibility:

<layer>
   <name>Parcel Name</name>
   <url>http://gissrv1/ArcGIS/rest/services/Cadastral/MapServer/3</url>
   <expression useforspatial="true">OWNERNAME1 LIKE '%[value]%'</expression>
   <textsearchlabel>Search by Owner Name [Example: Smith; Smith Robert]:</textsearchlabel>
   <graphicalsearchlabel>Use one of the graphical search tools to select features</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <spatialrelationlayer>true</spatialrelationlayer>
   <titlefield>PARID</titlefield>
   <linkfield linkprefix="http://www.co.palm-beach.fl.us/papa/aspx/web/detail_info.aspx?p_entity=" linksuffix="">PAPA</linkfield>
   <fields all="false">
    <field name="PARID" gridfield="true"/>
    <field name="OWNERNAME1" gridfield="true"/>
    <field name="OWNERNAME2" gridfield="true"/>
    <field name="SITEADDR" gridfield="true"/>
    <field name="PROPUSE" gridfield="true"/>
    <field name="ACRES" gridfield="true"/>
    <field name="EXEMPTION" gridfield="true" gridfieldonly="true"/>
    <field name="PADDR1" gridfield="true" gridfieldonly="true"/>
    <field name="PADDR3" gridfield="true" gridfieldonly="true"/>
    <field name="YEAR_ADDED" gridfield="true" gridfieldonly="true"/>
    <field name="SALE_DATE" dateformat="MM/DD/YYYY" gridfield="true" gridfieldonly="true"/>
    <field name="BOOK" gridfield="true" gridfieldonly="true"/>
    <field name="PAGE" gridfield="true" gridfieldonly="true"/>
    <field name="ZIP1" gridfield="true" gridfieldonly="true"/>
    <field name="MUNI" gridfield="true" gridfieldonly="true"/>
    <field name="SUBDIVNAM" gridfield="true"/>
    <field name="PRICE" gridfield="true" gridfieldonly="true"/>
    <field name="TOTMRKTVAL" gridfield="true" gridfieldonly="true"/>
    <field name="ASSESSVAL" gridfield="true" gridfieldonly="true"/>
    <field name="LANDVAL" gridfield="true" gridfieldonly="true"/>
    <field name="IMPRV_MRKT" gridfield="true" gridfieldonly="true"/>
    <field name="TOTALVALUE" gridfield="true" gridfieldonly="true"/>
    <field name="TOTTAXVAL" gridfield="true" gridfieldonly="true"/>
    <field name="PAPA" alias="PAPA Website Link" hyperlinkgridfield="true" hyperlinkaliastext="Click Here For PAPA Website" linkprefix="http://www.co.palm-beach.fl.us/papa/aspx/web/detail_info.aspx?p_entity=" linksuffix=""/>
   </fields>
   <zoomscale>2400</zoomscale>
  </layer>


Thanks.

Nestor.
0 Kudos
NadeemShaukat
Deactivated User
Robert,

   You are running into a very common issue with any attempt to globalize measurements and get accurate results. The best thing to do is use a UTM 1983 zone that is specific to your area of concern and that will provide you the best results.


Robert,

I also observed a similar difference in measurements. I changed the spatial refrence to 2153 for UTM 83 Zone 11, but it did not chage the measurement value. A 400 meters buffer distance around a point gives a measurement of 263 meters with eDraw widget tool.

It seems that the spatial reference is not being implemented at all, no matter what spatial reference Id you change to.

Other than that, it's a great widget.

nshaukat
0 Kudos