Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

199075
776
04-30-2013 03:58 PM
RobertScheitlin__GISP
MVP Emeritus
All,

   Here is a new thread to post questions and discuss the Enhanched Search Widget. The old thread was getting too long.
Tags (2)
776 Replies
RobertScheitlin__GISP
MVP Emeritus
Jay,

   As i mentioned earlier I am not sure what might have changed in 10.2 Server.
0 Kudos
SpatialNinja
Esri Regular Contributor
Thanks Robert.  Do you plan on recompiling for Flex 3.5?  It would be greatly appreciated.
Solutions Engineer | Spatial Ninja  | GIS ️ | Telecommunications
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Version 3.5 of my widgets are in the works. I am just extremely busy right now and will be delayed in getting them out.
0 Kudos
ZhujingXia
Frequent Contributor
How to make the intersect result from buffer not zoom to the intersect result.

I am using the Enhanced widget flex 3.0, after I created a buffer around a parcel, I need to choose a criteria layer to see how many criteria intersect with the buffer. Is that possible not zoom to the criteria result, let the map stay with parcel zoom in scale?
The issue is that my criteria layer is extreamly long polygons, after zoom to the result of the criteria, the map is away from the original parcel. That is not what user want.

Could you help me on this ?

Thanks
Zhujing
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Zhujing,

   I think what you are looking for is autozoomtoresults="false" in the eSearchWidget.xml
0 Kudos
HiranDias
Emerging Contributor
Robert,

Thanks for this wonderful Widget but i have a question, can i search using the BETWEEN command in SQL ? For example: Could i make 2 combos and put their values on a Value tag ? Like this:

<value prompt="pH Min" isvaluerequired="false" userlist="1, 2, 3" prompt="pH Max" userlist="5, 6, 7">pH between '[value]' and '[value]'</value>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Hiran,

  Sure it would look like this though:

                <expression alias="Replacement Score Between" textsearchlabel="Search Replacement Score Between:">
                    <values>
                        <value prompt="Example: 60" autosubmit="false">REPLSCORE BETWEEN [value]</value>
                        <value prompt="Example: 80" autosubmit="false" operator="AND">[value]</value>
                    </values>
                </expression>
0 Kudos
HiranDias
Emerging Contributor
Its returning error 400

Could you please check my code ?


<configuration>
    <layers>
        <layer>
            <definitionexpression/>
            <enableexport>true</enableexport>
            <name>Geoquimica Multiuso</name>
            <url>http://arcgisserver:6080/arcgis/rest/services/GeoquimicaMultiuso/MapServer/0</url>
            <expressions>
                <expression alias="Pesquisa Livre" textsearchlabel="Selecione um ou mais filtros para a pesquisa" isvaluerequired="true">
                    <values>
                        <value prompt="Classe" isvaluerequired="false" userlist="Água Abastecimento, Água superficial, Sedimento, Solo">Classe_de = '[value]'</value>
                        <value prompt="Amostra" isvaluerequired="false" uniquevalsfromfield="AMOSTRA" operator="AND">AMOSTRA = '[value]'</value>
                        <value prompt="Bacia" isvaluerequired="false" uniquevalsfromfield="Bacia" operator="AND">Bacia = '[value]'</value>
                        <value prompt="pH mínimo" userlist="1, 2, 3" autosubmit="false" isvaluerequired="false">pH BETWEEN [value]</value>
                        <value prompt="pH máximo" userlist="5, 6, 7" autosubmit="false" isvaluerequired="false" operator="AND">[value]</value>
                    </values>
                </expression>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Hiran,

   This is what the SQL string submitted to ArcGIS Server would look like.

Classe_de = 'Água Abastecimento' AND AMOSTRA = 'some string' AND Bacia = 'Some String' pH BETWEEN 2 AND 6

Notice that after Bacia and before pH there is no AND.

                <expression alias="Pesquisa Livre" textsearchlabel="Selecione um ou mais filtros para a pesquisa" isvaluerequired="true">
                    <values>
                        <value prompt="Classe" isvaluerequired="false"
                            userlist="Água Abastecimento, Água superficial, Sedimento, Solo">Classe_de = '[value]'</value>
                        <value prompt="Amostra" isvaluerequired="false"
                            uniquevalsfromfield="AMOSTRA" operator="AND">AMOSTRA = '[value]'</value>
                        <value prompt="Bacia" isvaluerequired="false"
                            uniquevalsfromfield="Bacia" operator="AND">Bacia = '[value]'</value>
                        <value prompt="pH mínimo" userlist="1, 2, 3" autosubmit="false"
                            isvaluerequired="false" operator="AND">pH BETWEEN [value]</value>
                        <value prompt="pH máximo" userlist="5, 6, 7" autosubmit="false"
                            isvaluerequired="false" operator="AND">[value]</value>
                    </values>
                </expression> 
0 Kudos
JulieWilliams1
Deactivated User
Hi Robert!
We are heavily using your eSearch widget in all of our ArcGIS Viewer for Flex maps and we love it!  It has let us give our users some great reporting capability which ends up saving me tons of time spent creating reports.  I am having a strange domain issue that I couldn't find anyone else having in the forum, and I apologize in advance if you have already addressed this.  I am using your 3.3 version of the tool, we are using the 3.3 version of ArcGIS Viewer for Flex and the features that I am having trouble with in the search tool are in a File Geodatabase Feature class, and were created through our DIMP models in Model Builder, and v. 10.1 of ArcMap . The features are sub-typed and different domains are applied to a number of different fields based on the subtypes.  The problem I am having is in the results grid, I am getting some of the results that display the domain value and some of the results are displaying the code for the value on the same attribute.  On the field that is my subtype field, I am only getting codes and no values at all.  Also, I am getting crossed domains where there is a common code in two different domains and the results are displaying the wrong value for one of the subtypes (we have a code '13' in two different domains and the results are grabbing the wrong domain value for one of the fields).  Currently, this is happening on the COATING field, but prior to updating my map services, it was happing on the NOMINALDIAMTER field. Here is the code in the config. file for the eSearch tool:

<layer>
   <token/>
   <definitionexpression>TopRegionOfficeScoresM = 1</definitionexpression>
   <enableexport>true</enableexport>
   <enableprintgrid>true</enableprintgrid>
   <name>Total Risk Score - Mains</name>
   <url>http://Shrek:6080/arcgis/rest/services/Final_DIMP_Scores/MapServer/1</url>
   <expressions>
    <expression alias="Total Risk Score - Mains" textsearchlabel="Search Mains Total Risk by Region Code">
     <values>
      <value prompt="Region Name:" field="REGIONOFFICECODE" userlist="BLF,CED,EVN,FIL,HEB,LOG,MOB,OGD,PRC,RCH,RSW,SLC,SPV,STG,VRN">REGIONOFFICECODE = '[value]'</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Total Risk Score - Mains</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>MJ</titlefield>
   <fields all="false">
    <field name="DIMP_Risk_TotalM" alias="Total Risk Mains" gridfield="true"/>
    <field name="MJ" alias="MJ" gridfield="true"/>
    <field name="PROJECTID" alias="Project ID" gridfield="true"/>
    <field name="ORIGINSTDATE" alias="Orig Inst Date" gridfield="true" dateformat="MM/DD/YYY"/>
    <field name="INSERVICEDATE" alias="In Service Date" gridfield="true" dateformat="MM/DD/YYY"/>
    <field name="NOMINALDIAMETER" alias="Nominal Diameter" usedomain="true" gridfield="true"/>
    <field name="MATERIALTYPE" alias="Material Type" usedomain="true" gridfield="true"/>
    <field name="COATINGTYPE" alias="Coating Type" usedomain="true" gridfield="true"/>
    <field name="BELTLINEINDICATOR" alias="Beltline Indicator" usedomain="true" gridfield="true"/>
    <field name="CATHSYSID" alias="Cathodic Sys ID" gridfield="true"/>
    <field name="RECONDITIONED" alias="Reconditioned" usedomain="true" gridfield="true"/>
    <field name="GRADE" alias="Grade" usedomain="true" gridfield="true"/>
    <field name="COUNTYNAME" alias="County Name" gridfield="true"/>
    <field name="STATENAME" alias="State Name" gridfield="true"/>
    <field name="CITYNAME" alias="City Name" gridfield="true"/>
    <field name="OPAREA" alias="Op Area" gridfield="true"/>
    <field name="REGIONOFFICECODE" alias="Region Office Code" gridfield="true"/>
    <field name="REGIONOFFICENAME" alias="Region Office Name" gridfield="true"/>
    <field name="REGIONNAME" alias="Region Name" gridfield="true"/>
    <field name="Risk_CorrosionM" alias="Corrosion Risk" gridfield="true"/>
    <field name="Risk_ExcavationDamageM" alias="Excavation Damage Risk" gridfield="true"/>
    <field name="Risk_IncorrectOperationM" alias="Incorrect Operation Risk" gridfield="true"/>
    <field name="Risk_MaterialM" alias="Material Risk" gridfield="true"/>
    <field name="Risk_NaturalForcesM" alias="Natural Forces Risk" gridfield="true"/>
    <field name="Risk_OtherOutsideForcesM" alias="Other Outside Forces Risk" gridfield="true"/>
    <field name="Risk_WeldJointFailureM" alias="Weld Joint Failure Risk" gridfield="true"/>
    <field name="Risk_EquipmentFailureM" alias="Equipment Failure Risk" gridfield="true"/>
    <field name="ConsequencesM" alias="Consequences Total" gridfield="true"/>
   </fields>
   <links/>
   <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
   <autoopendatagrid>true</autoopendatagrid>
   <queryattachments>false</queryattachments>
   <relates/>
   <symbology>
    <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
   </symbology>
  </layer>

Just wondering if you have seen this problem with anyone else or if you can see something I am missing in the code.  Thanks, so much, for your help!

Julie Williams
0 Kudos