Select to view content in your preferred language

Enhanced Search Widget for FlexViewer 2.1

110093
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
Shawn,

   I don't remember all the pitfalls you might encounter (if any) but it would be worth it to get back up to date.
0 Kudos
HalilSiddique
Frequent Contributor
Hi Robert,

Have a you got any plans of linking the Point Buffer Widget with the eSearch widget. My users to do the following:

  1. Click on Map to create buffer

  2. Use the Search Widget to select the layer to search.

  3. Click button to apply Graphical Search (from buffer created)

  4. Return results

Cheers

Halil
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Halil,

  Version 2.3.3 now works with the Point Buffer Widget's buffer graphics. When Flex Viewer 2.4 comes out I have plans for even better integration between my widgets.
0 Kudos
HalilSiddique
Frequent Contributor
Robert,

Perfect, thanks lot.

One thing of note that i have noticed is that both  widgets need to be opened, for the buffer point widget to be active.

halil
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   There is a new version of the eSearch Available.

Version 2.3.4 - 07/19/2011
  * Added a child widget that allows you to have a fixed position datagrid instead of the floating datagrid.
  * Added the Enhanced Search Widget Fixed Datagrid Setup.pdf to help with the setup.
0 Kudos
HalilSiddique
Frequent Contributor
Robert,

Me again :o...

I have got a search on Planning Applications, and want to hyperlink one of the fields (KEYVAL), but cant seem to get it to work, I get no option to click a link or click on a button to take me to the url.

Heres part of the code

  <layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
            <name>Planning Apps</name>
            <url>http://baltimore/ArcGIS/rest/services/ATLAS_Plan/ATLAS_Plan_Dynamic/MapServer/17</url>
            <expressions>
             <expression alias="Planning Applications" textsearchlabel="Enter Planning Application Number [ Example: 03/00981/FUL ]:">UNISDELIVE.UFRM_DCAPPL_POLY.REFVAL LIKE ('[value]%')</expression>
            </expressions>
            <graphicalsearchlabel>Use one of the graphical search tools to select Planning Application</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>UNISDELIVE.UFRM_DCAPPL_POLY.REFVAL</titlefield>
            <linkfield linkprefix="" linksuffix=""></linkfield>
            <fields all="false">
    <field name="UNISDELIVE.UFRM_DCAPPL_POLY.REFVAL" gridfield="true"/>
     <field name="UNI73LIVE.PLAN_APPS.DCAPPTYP" gridfield="true"/>
    <field name="UNI73LIVE.PLAN_APPS.DCSTAT" gridfield="true"/>
    <field name="UNI73LIVE.PLAN_APPS.DATEAPRECV" gridfield="true" dateformat="DD/MM/YYYY"/>
    <field name="UNI73LIVE.PLAN_APPS.ALTREF" gridfield="true"/>
    <field name="UNI73LIVE.PLAN_APPS.KEYVAL" gridfield="false" hyperlinkgridfield="false" hyperlinkaliastext="UNI73LIVE.PLAN_APPS.KEYVAL" linkprefix="http://planning.southend.gov.uk/PublicAccess/tdc/DcApplication/application_detailview.aspx?caseno=" linksuffix=""/>
   </fields> 
   <linkfield linkprefix="http://planning.southend.gov.uk/PublicAccess/tdc/DcApplication/application_detailview.aspx?caseno=" linksuffix="">UNI73LIVE.PLAN_APPS.KEYVAL</linkfield>
   <icon isfield="true" iconsuffix="" iconprefix=""/>
   <zoomscale usegeometry="false">5000</zoomscale>
        </layer>
 


Where am I going wrong?


Also when doing a search how to I get only certain fields to show in the search area, and other fields on the map tip?

Cheers

Halil
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Halil,

   The issue is that you tell my code that there is no link field and then a couple of line latter you say there is one, that is not going to work.

<layer>   
<definitionexpression></definitionexpression>   
<enableexport>true</enableexport>
<name>Planning Apps</name>
<url>http://baltimore/ArcGIS/rest/services/ATLAS_Plan/ATLAS_Plan_Dynamic/MapServer/17</url>
<expressions>
<expression alias="Planning Applications" textsearchlabel="Enter Planning Application Number [ Example: 03/00981/FUL ]:">UNISDELIVE.UFRM_DCAPPL_POLY.REFVAL LIKE ('[value]%')</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select Planning Application</graphicalsearchlabel>   <spatialsearchlayer>true</spatialsearchlayer>
<titlefield>UNISDELIVE.UFRM_DCAPPL_POLY.REFVAL</titlefield><linkfield linkprefix="" linksuffix=""></linkfield>
<fields all="false">
<field name="UNISDELIVE.UFRM_DCAPPL_POLY.REFVAL" gridfield="true"/>
<field name="UNI73LIVE.PLAN_APPS.DCAPPTYP" gridfield="true"/>
<field name="UNI73LIVE.PLAN_APPS.DCSTAT" gridfield="true"/>
<field name="UNI73LIVE.PLAN_APPS.DATEAPRECV" gridfield="true" dateformat="DD/MM/YYYY"/>
<field name="UNI73LIVE.PLAN_APPS.ALTREF" gridfield="true"/>
<field name="UNI73LIVE.PLAN_APPS.KEYVAL" gridfield="false" hyperlinkgridfield="false" hyperlinkaliastext="UNI73LIVE.PLAN_APPS.KEYVAL" linkprefix="http://planning.southend.gov.uk/Publ...ew.aspx?caseno=" linksuffix=""/>
</fields>
<linkfield linkprefix="http://planning.southend.gov.uk/Publ...ew.aspx?caseno=" linksuffix="">UNI73LIVE.PLAN_APPS.KEYVAL</linkfield>
<icon isfield="true" iconsuffix="" iconprefix=""/>
<zoomscale usegeometry="false">5000</zoomscale>
</layer>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Halil,

   For the second part of your question the option you have is what is displayed only in the grid using the gridfieldonly="true"
0 Kudos
GeoffTaylor1
Occasional Contributor
I have run into a bug with the results showing in the grid function.  It seems that even if there is a <null> location in the database the location still has a link appear.

here is an example of the code i am working with

<field name="SURVEYS" alias="Surveys" hyperlinkgridfield="true" hyperlinkaliastext="View Surveys" linkprefix="http://maps.clemson.edu/culandmanagementv2/" linksuffix="" gridfieldonly="false"/>


The table fields in the database complete the url and if there is a table field titled <null> a link still shows up with the linkprefix:  ex: http://maps.clemson.edu/culandmanagementv2/<null>
0 Kudos
CaitlinBernier
Emerging Contributor
Hi Robert,

I have been away from my Flex Viewer development for a while but have now returned.  I am setting up a new eSearch for addresses.  When you run the search, you get results but there is no text in the results window, nor is there text in the grid or in the popup.  The locations are showing up but I cannot see the attributes at all.  It is very odd.  Do you have any idea what might be causing this? The other site I have set up with the same version of the eSearch widget works fine.  Hmmm.

Thanks in advance for your help.

Caitlin Bernier
0 Kudos