Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part II

136924
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
JORGELAGOS2
Emerging Contributor
Jorge,

  Just the way you did it in the QueryWidget just use 1=1 in the expression for the eSearch.


Sorry Robert but I don't know how to code 1=1 in the eSearch?

In the Query was:
   <query>1=1</query>

but in the eSearch the code

    <expression alias="Project Railroads" textsearchlabel="Enter NAME or FEATURE_ID below">
    <values>
           <value>NAME like ('%[value]%') </value>
    </values>
  </expression>

How can I replace 1=1 in this search expression?

Thanks again

Jorge
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jorge,

  
<expression alias="Project Railroads" textsearchlabel="Enter NAME or FEATURE_ID below">
    <values>
           <value>1=1</value>
    </values>
  </expression>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   I guess I neglected to test sorting using joined data. I will get this fixed in the next release.

Here is the fix for the JoinDataGridColumn.as
        public function labelCompareFunction1(obj1:Object, obj2:Object, column:GridColumn = null):int
0 Kudos
MattRogers
Emerging Contributor
Rob,

Is it possible to disable the results to only have them show in the FixedDG and leave the text search still showing? Not sure if this is something that can be done in the compiled version 3.07 or not.

Thanks,

Matt
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   No that is not an option in the compiled version.
0 Kudos
RhettZufelt
MVP Notable Contributor
Gabriel,

   Bug with the label being ignored is fixed for next release (thanks for reporting this).

  1. I will add this as an enhancement request. Currently there are checks made to ensure all fields are filled before executing the search. The draw back to this being changed is that the search will no longer be able to be triggered by pressing the enter key as I will not know if the user pressed enter unintentionally or not.



Hi Robert,

Been trying to figure out where/how you removed the ability to trigger search by pressing enter.

Would that be something pretty simple for me to add back in?  In my "particular" case, it is prefered.

Thanks again,

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   If you only have one field than the enter key still works.
0 Kudos
MattRogers
Emerging Contributor
Sorry Rob...I'm new to this and should have asked if there was a way to do this in the uncompiled or compiled version. When searching the forum I found this topic where it was done, just wondering if you can point me in the right direction on how to go about doing this.

http://forums.arcgis.com/threads/64335-eSearch-disable-Results-state

Thanks,

Matt

Matt,

   No that is not an option in the compiled version.


Rob,

Is it possible to disable the results to only have them show in the FixedDG and leave the text search still showing? Not sure if this is something that can be done in the compiled version 3.07 or not.

Thanks,

Matt
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

  Well that thread speaks of a way to prevent the widget from switching to the results state but it does not prevent the widget from having the result. If this is what you are after than all you need to do is search for the queryFeatureText function and comment out the
showStateResults(); 
line.
0 Kudos
JORGELAGOS2
Emerging Contributor
hello Robert,

Now i would like to use your eSearch tool with two value option using the same layer and fields. Is that possible?

Something like this:


     <values>
    
       <value userlist="Select All Records">1=1</value>
          <value>upper(PRJTRACTNO) like upper('%[value]%')</value>

     </values>

    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Property Parcels</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>PRJTRACTNO</titlefield>
   <fields all="false">
    <field name="PRJTRACTNO" gridfield="true"/>
    <field name="OWNER" gridfield="true"/>
    <field name="MOD_DATE" gridfield="true" dateformat="MM/DD/YYYY"/>
    <field name="CLASS" gridfield="true" gridfieldonly="true"/>
    <field name="ROW_IMPACT" gridfield="true" gridfieldonly="true"/>
    <field name="ADDITIONAL_IMPACT" gridfield="true" gridfieldonly="true"/>
0 Kudos