Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

201493
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
DongxingMa
Emerging Contributor
Thanks for the quick responses!
Actually all feature classes that have a true subtype field (with code # and domain) have this issue, not only one layer.

Not sure what info you need exactly, hope below map service info helps:
=============================================================
Layer: Potable Pressurized Mains (ID: 12)
Name: Potable Pressurized Mains

Display Field: otaypub.OTAYDATA.wPressurizedMain.AdministrativeArea

Type: Feature Layer

Geometry Type: esriGeometryPolyline

Description:

Definition Expression:

Copyright Text:

Default Visibility: true

MaxRecordCount: 1000

Supported Query Formats: JSON, AMF

Min Scale: 50000

Max Scale: 0

Supports Advanced Queries: false

Supports Statistics: false

Has Labels: false

Can Modify Layer: false

Can Scale Symbols: false

Extent:
XMin: 6314450.807010651
YMin: 1779630.322790414
XMax: 6381950.007841527
YMax: 1868933.5962175876
Spatial Reference: 102646  (2230)



Drawing Info:
Renderer:
Unique Value Renderer:
Field 1: otaypub.OTAYDATA.wPressurizedMain.Subtype
Field 2: otaypub.OTAYDATA.wPressurizedMain.LifecycleStatus
Field 3: null
Field Delimiter: ,
Default Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Default Label:
UniqueValueInfos:
Value: 7, Existing
Label: TransmissionMain
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 0, 0, 255]
Width: 3
Value: 2, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 1, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 9, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 3, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 4, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 8, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 6, Existing
Label: Existing
Description:
Symbol:
Style: esriSLSSolid
Color: [0, 92, 230, 255]
Width: 1
Value: 2, Abandoned
Label: Abondoned; Removed
Description:
Symbol:
Style: esriSLSDash
Color: [0, 92, 230, 255]
Width: 1
Value: 2, Removed
Label: Abondoned; Removed
......
......



Labeling Info:

HasZ: false

HasM: true

Has Attachments: false

HTML Popup Type: esriServerHTMLPopupTypeNone

Type ID Field: Subtype

Fields:
otaypub.OTAYDATA.wPressurizedMain.OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )
otaypub.OTAYDATA.wPressurizedMain.Enabled ( type: esriFieldTypeSmallInteger , alias: Enabled , Coded Values: [0: False] , [1: True] )
otaypub.OTAYDATA.wPressurizedMain.Subtype ( type: esriFieldTypeInteger , alias: Subtype )
otaypub.OTAYDATA.wPressurizedMain.AdministrativeArea ( type: esriFieldTypeString , alias: AdministrativeArea , length: 7 , Coded Values: , , , ...2 more... )
otaypub.OTAYDATA.wPressurizedMain.FacilityID ( type: esriFieldTypeString , alias: FacilityID , length: 25 )
otaypub.OTAYDATA.wPressurizedMain.InstallDate ( type: esriFieldTypeInteger , alias: InstallDate )
otaypub.OTAYDATA.wPressurizedMain.LifecycleStatus ( type: esriFieldTypeString , alias: LifecycleStatus , length: 20 , Coded Values: [Abandoned: Abandoned] , [Existing: Existing] , [Proposed: Proposed] , ...2 more... )
otaypub.OTAYDATA.wPressurizedMain.WorkorderID ( type: esriFieldTypeString , alias: WorkorderID , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.WaterType ( type: esriFieldTypeString , alias: WaterType , length: 15 , Coded Values: [Potable: Potable Water] , [Recycled: Recycled Water] , [FutureRecycle: Future Recycle] )
otaypub.OTAYDATA.wPressurizedMain.Material ( type: esriFieldTypeString , alias: Material , length: 30 , Coded Values: [DIP: Ductile Iron] , [CIP: Cast Iron] , [PVC: Poly Vinyl Chloride] , ...10 more... )
otaypub.OTAYDATA.wPressurizedMain.Otayrecord ( type: esriFieldTypeString , alias: Otayrecord , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.Facilitypage ( type: esriFieldTypeString , alias: Facilitypage , length: 10 )
otaypub.OTAYDATA.wPressurizedMain.Encase ( type: esriFieldTypeString , alias: Encase , length: 7 , Coded Values: [Yes: Yes] , [No: No] )
otaypub.OTAYDATA.wPressurizedMain.FTC ( type: esriFieldTypeString , alias: FTC , length: 50 )
otaypub.OTAYDATA.wPressurizedMain.Pipeclass ( type: esriFieldTypeString , alias: Pipeclass , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.Remarks ( type: esriFieldTypeString , alias: Remarks , length: 150 )
otaypub.OTAYDATA.wPressurizedMain.ExteriorCoating ( type: esriFieldTypeString , alias: ExteriorCoating , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.JointType1 ( type: esriFieldTypeString , alias: JointType1 , length: 20 , Coded Values: [Flange: Flange] , [Weld: Weld] , [Bond: Bond] , ...2 more... )
otaypub.OTAYDATA.wPressurizedMain.JointType2 ( type: esriFieldTypeString , alias: JointType2 , length: 20 , Coded Values: [Flange: Flange] , [Weld: Weld] , [Bond: Bond] , ...2 more... )
otaypub.OTAYDATA.wPressurizedMain.LiningType ( type: esriFieldTypeString , alias: LiningType , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.Roughness ( type: esriFieldTypeDouble , alias: Roughness )
otaypub.OTAYDATA.wPressurizedMain.Imagelink ( type: esriFieldTypeString , alias: Imagelink , length: 150 )
otaypub.OTAYDATA.wPressurizedMain.old_Diameter ( type: esriFieldTypeDouble , alias: old_Diameter )
otaypub.OTAYDATA.wPressurizedMain.PZone ( type: esriFieldTypeString , alias: PZone , length: 50 )
otaypub.OTAYDATA.wPressurizedMain.Depth ( type: esriFieldTypeDouble , alias: Depth )
otaypub.OTAYDATA.wPressurizedMain.Diameter ( type: esriFieldTypeDouble , alias: Diameter , Coded Values: [1: 1 inch] , [2: 2 inch] , [4: 4 inch] , ...23 more... )
otaypub.OTAYDATA.wPressurizedMain.GroundSurfaceType ( type: esriFieldTypeString , alias: GroundSurfaceType , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.PressureRating ( type: esriFieldTypeString , alias: PressureRating , length: 20 )
otaypub.OTAYDATA.wPressurizedMain.Set_ID ( type: esriFieldTypeString , alias: Set_ID , length: 50 )
otaypub.OTAYDATA.wPressurizedMain.INGBAMS ( type: esriFieldTypeSmallInteger , alias: INGBAMS )
otaypub.OTAYDATA.wPressurizedMain.GBALINK ( type: esriFieldTypeInteger , alias: GBALINK )
otaypub.OTAYDATA.wPressurizedMain.TempID ( type: esriFieldTypeInteger , alias: TempID )
otaypub.OTAYDATA.wPressurizedMain.ASBUILTNO ( type: esriFieldTypeString , alias: ASBUILTNO , length: 10 )
otaypub.OTAYDATA.wPressurizedMain.GlobalID ( type: esriFieldTypeGlobalID , alias: GlobalID , length: 38 )
otaypub.OTAYDATA.wPressurizedMain.MODEL ( type: esriFieldTypeString , alias: MODEL , length: 10 )
otaypub.OTAYDATA.wPressurizedMain.MODEL_ID ( type: esriFieldTypeString , alias: MODEL_ID , length: 50 )
otaypub.OTAYDATA.wPressurizedMain.RuleID ( type: esriFieldTypeInteger , alias: RuleID , Coded Values: [1: Air/Vac, Abandoned, ; Air/Vac, Abandoned, ; Air/Vac, Removed, ] , [2: Air/Vac, Existing, ; Air/Vac, Existing, 1050; Air/Vac, Existing, 711; Air/Vac, Existing, 805; Air/Vac, Existing, 978; Air/Vac, Existing, 980; Air/Vac, Existing, ; Air/Vac, Existing, null] , [3: Air/Vac, Proposed, ; Air/Vac, Proposed, 7; Air/Vac, Proposed, ] , ...72 more... )
otaypub.OTAYDATA.wPressurizedMain.Override ( type: esriFieldTypeBlob , alias: Override )
otaypub.OTAYDATA.wPressurizedMain.Shape ( type: esriFieldTypeGeometry , alias: Shape )
OtayPub.dbo.vw_wASBUILTS_URL.AsBuiltNo ( type: esriFieldTypeString , alias: AsBuiltNo , length: 50 )
OtayPub.dbo.vw_wASBUILTS_URL.ASBUILTURL ( type: esriFieldTypeString , alias: ASBUILTURL , length: 87 )
OtayPub.dbo.vw_wASBUILTS_URL.SID ( type: esriFieldTypeInteger , alias: SID )
Types:
ID: 1
Name: BlowOff
Domains:
otaypub.OTAYDATA.wPressurizedMain.Enabled:
Inherited
otaypub.OTAYDATA.wPressurizedMain.AdministrativeArea:
Inherited
otaypub.OTAYDATA.wPressurizedMain.LifecycleStatus:
Inherited
otaypub.OTAYDATA.wPressurizedMain.WaterType:
Inherited
otaypub.OTAYDATA.wPressurizedMain.Material:
Inherited
otaypub.OTAYDATA.wPressurizedMain.Encase:
Inherited
otaypub.OTAYDATA.wPressurizedMain.JointType1:
Inherited
otaypub.OTAYDATA.wPressurizedMain.JointType2:
Inherited
otaypub.OTAYDATA.wPressurizedMain.Diameter:
Inherited

--------------------------------------------------------------------------------
ID: 3
Name: Chemical
......

--------------------------------------------------------------------------------
ID: 6
Name: WaterTestStation
......
......

=============================================================
0 Kudos
JayHalligan
Occasional Contributor
I have been using the esearch widget for some time now, but I have just run across a problem and I am not sure what is causing the issue.  I have published an X,Y event layer to our server on Amazon EC2 which is dynamically reading a SQL table that is updated nightly.  But....When searching the event layer

a)uniquevalsfromfield causes all of the search values to not work
b)without the expression uniquevalsfromfield, the widget is only returning the first value it finds

Any ideas?  The widget works fine on our internal server(and internal SQL) but not when I transferred the widget.  It also works fine on the server when the database was copied to the amazon.
0 Kudos
RachelAlbritton
Frequent Contributor
I'm using eSearch widget 3.1 and for the most part it works great (Thank you!). My only question is, I was under the impression that the tool also physically selected out the searched record(s) in the specifed layer(s). Currently, the tool finds the correct record and zooms to its location, but the actual record doesn't appear to be selected. Am I wrong in thinking that the widget should actually select the record? Eventually what I'm wanting is for a geoprocessing task to run on the selected record so if this doesn't perform that step I may need to integrate in an intermediate step.
Here's a link to the draft application so you can see what I'm talking about.
My code is posted below if needed.

<?xml version="1.0" ?>
<!-- See Enhanced Search Widget XML Configuration.pdf for detailed explanation -->
<configuration>
 <layers>
  <layer>
   <token/>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>Building Centroids</name>
   <url>http://152.46.17.82/arcgis/rest/services/surf_city/SurfCity/MapServer/0</url>
   <expressions>
    <expression alias="Address" textsearchlabel="Search for Parcel by Address:">
     <values>
      <value prompt="Example: 123 S 3RD ST" uniquevalsfromfield="hadd" isvaluerequired="true" autosubmit="true">hadd = '[value]'</value>
     </values>
    </expression>
    <expression alias="Parcel ID" textsearchlabel="Search by Parcel ID:" isvaluerequired="true">
     <values>
      <value prompt="Example: 2630" uniquevalsfromfield="id" >id = '[value]'</value>
     </values>
    </expression>
   </expressions>
   <!--graphicalsearchlabel>Use one of the graphical search tools to Search Parcels</graphicalsearchlabel -->
   <!--spatialsearchlayer>false</spatialsearchlayer-->
   <titlefield>hadd</titlefield>
   <fields all="false">
    <field name="id" gridfield="true"/>
    <field name="hadd" gridfield="true"/>
    <field name="floors" gridfield="true"/>
   </fields>
   <links/>
   <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
   <autoopendatagrid>true</autoopendatagrid>
   <queryattachments>true</queryattachments>
   <relates/>
   <symbology>
    <simplefillsymbol color="0xff0000" alpha="0.5">
     <outline color="0xff0000" alpha="0.8" width="2" />
    </simplefillsymbol>
   </symbology>
  </layer>
 </layers>
 
 <bufferunits>
  <bufferunit selected="true">
   <name>UNIT_FOOT</name>
   <label>Feet</label>
  </bufferunit>
  <bufferunit>
   <name>UNIT_METER</name>
   <label>Meters</label>
  </bufferunit>
 </bufferunits>
 <buffervalue>10</buffervalue>
 <printdatagrid>
  <addheadertoeachpage>true</addheadertoeachpage>
  <columnheaderbgcolor>0xa7a7a7</columnheaderbgcolor>
  <columnheaderfontcolor>0x000000</columnheaderfontcolor>
  <footer>
   <pageoftext>Page ## of ##</pageoftext>
   <includeprintdate format="MM-DD-YYYY L:NN A">true</includeprintdate>
   <disclaimer></disclaimer><!-- be carefull of the length -->
  </footer>
 </printdatagrid>
 <keepgraphicalsearchenabled>true</keepgraphicalsearchenabled>
 <autozoomtoresults>true</autozoomtoresults>
 <popupsdisabled>false</popupsdisabled>
 <enabledatagridinteractionwithwidget>true</enabledatagridinteractionwithwidget>
 <toleranceforpointgraphicalselection>6</toleranceforpointgraphicalselection><!-- value is in screen pixels -->
 <tolerancebydefault>false</tolerancebydefault>
 <spatialreference>102100</spatialreference>
 <zoomscale>2400</zoomscale>
 <csvseparator>,</csvseparator>
 <disablebuttons></disablebuttons><!--possible values one or more not all four search types comma separated text,graphic,spatial,result,datagrid -->
 <defaultselectionoption>textInput</defaultselectionoption><!--possible values only one graphicalInput or textInput or spatialInput -->
 <enabledrawgraphicbutton>false</enabledrawgraphicbutton>
        <enablelocategraphicbutton>false</enablelocategraphicbutton>
 <enablebuffergraphicbutton>false</enablebuffergraphicbutton>
 <selectedgraphicaltool></selectedgraphicaltool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
 <multipartgraphicsearch>false</multipartgraphicsearch>
 <floatorfixed>fixed</floatorfixed><!-- possible values are fixed and float -->
 <relatetooltip>Show Relates</relatetooltip>
 <relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon>
 <labels>
  <urlsearcherrormessage>URL search parameters are incorrect</urlsearcherrormessage>
  <includetextquery>include text query in selection criteria</includetextquery>
  <includetextquerywarn>Must be the same search layer in both
graphical and text search pages.</includetextquerywarn>
  <buffergrapicprops>Buffer graphic properties</buffergrapicprops>
  <bufferusergraphics>Buffer Graphic</bufferusergraphics>
  <norelatesfound>No related features found for: </norelatesfound>
  <norelatesfoundalerttitle>No Results</norelatesfoundalerttitle>
  <addtolerance>Add search tolerance to point selection</addtolerance>
  <existingdrawgraphicslabel>Use Existing Enhanced Draw Widget Graphics</existingdrawgraphicslabel>
                <existinglocategraphicslabel>Use Existing Enhanced Locate Widget Graphics</existinglocategraphicslabel>
  <existingbuffergraphicslabel>Use Existing Point Buffer Widget Graphics</existingbuffergraphicslabel>
  <graphicalsearchlabel>Graphical Search</graphicalsearchlabel>
  <textsearchlabel>Text Search</textsearchlabel>
  <resultslabel>Results</resultslabel>
  <layerlabel>Search Layer:</layerlabel>
  <layerfieldlabel>Search Layer Field:</layerfieldlabel>
  <nolayerlabel>No search layer defined.</nolayerlabel>
  <submitlabel>Search</submitlabel>
  <rectanglelabel>Select by Rectangle</rectanglelabel>
  <polygonlabel>Select by Polygon</polygonlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
  <selectionlabel>Features Selected:</selectionlabel>
  <gridresultslabel>Show Results in Grid</gridresultslabel>
  <csvdefaultname>Selected Records</csvdefaultname>
  <relatescsvdefaultname>Related Records</relatescsvdefaultname>
  <exportbtnlabel>Export...</exportbtnlabel>
  <export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
  <export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
  <bufferlabel>apply a search distance:</bufferlabel>
  <spatialsearchlabel>Spatial search</spatialsearchlabel>
  <applybufferlabel>Apply buffer</applybufferlabel>
  <searchlayerlabel>Search entities of:</searchlayerlabel>
  <enablemultipartsearch>enable multi-part graphics</enablemultipartsearch>
  <zoomalllabel>Zoom</zoomalllabel>
  <zoomalltip>Zoom to all results</zoomalltip>
  <bufferalpha>Fill opacity</bufferalpha>
  <buffercolor>Fill color</buffercolor>
  <nobuffercolor>No fill color</nobuffercolor>
  <bufferoutlinecolor>Outline color</bufferoutlinecolor>
  <nobufferoutlinecolor>No outline color</nobufferoutlinecolor>
  <bufferoutlinewidth>Outline Width</bufferoutlinewidth>
  <configbuffergra>Configure buffer graphic properties...</configbuffergra>
  <required>*</required>
  <requiredtooltip>This field is required.
Enter a value to enable search button</requiredtooltip>
  <selectmethodtip>Click to change the selection method</selectmethodtip>
  <newselectionmethodtip>Create new selection</newselectionmethodtip>
  <addselectionmethodtip>Add to current selection</addselectionmethodtip>
  <removeselectionmethodtip>Remove from current selection</removeselectionmethodtip>
 </labels>
 <symbols>
  <simplefillsymbol color="0x00ffff" alpha="0.5">
   <outline color="0xff0000" alpha="0.8" width="2" />
  </simplefillsymbol>
  <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol 
   defined for your point results NOT BOTH. picturemarkersymbol will override 
   simplemarkersymbol if you do not have it commented out. -->
  <!-- <simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5" 
   xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0x000000" 
   alpha="1" width="1"/> </simplemarkersymbol> -->
  <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0xff0000" alpha="0.8" width="2" />
 </symbols>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rachel,

   You are making a simple mistake in your layers configuration (one that several people have made). Your layer has a geometry type of point your you are using the default symbology tag that is intended for a layer that is a polygon geometry type.

        <layer>
            <token/>
            <definitionexpression></definitionexpression>
            <enableexport>true</enableexport>
            <name>Building Centroids</name>
            <url>http://152.46.17.82/arcgis/rest/services/surf_city/SurfCity/MapServer/0</url>
            <expressions>
                <expression alias="Address" textsearchlabel="Search for Parcel by Address:">
                    <values>
                        <value prompt="Example: 123 S 3RD ST" uniquevalsfromfield="hadd" isvaluerequired="true" autosubmit="true">hadd = '[value]'</value>
                    </values>
                </expression>
                <expression alias="Parcel ID" textsearchlabel="Search by Parcel ID:" isvaluerequired="true">
                    <values>
                        <value prompt="Example: 2630" uniquevalsfromfield="id" >id = '[value]'</value>
                    </values>
                </expression>
            </expressions>
            <!--graphicalsearchlabel>Use one of the graphical search tools to Search Parcels</graphicalsearchlabel -->
            <!--spatialsearchlayer>false</spatialsearchlayer-->
            <titlefield>hadd</titlefield>
            <fields all="false">
                <field name="id" gridfield="true"/>
                <field name="hadd" gridfield="true"/>
                <field name="floors" gridfield="true"/>
            </fields>
            <links/>
            <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
            <autoopendatagrid>true</autoopendatagrid>
            <queryattachments>true</queryattachments>
            <relates/>
            <symbology>
                <simplefillsymbol color="0xff0000" alpha="0.5">
                    <outline color="0xff0000" alpha="0.8" width="2" />
                </simplefillsymbol>
            </symbology>
        </layer>


You need to change that to a simplemarkersymbol or picturemarker symbol.

as far as using a search result from the eSearch as an input for a geoprocessing task I don't have any experience doing something like that to be able to provide any guidance there.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jay,

    Your situation is a unique one that I can not support or even test as I have not access or experience in cloud based servers or services. I sounds like a permissions issue though. The only thing I can recomment is tht use use a http traffic tool like Fidler and see which requests are not being fulfilled by the server.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Dongxing,

  Actually I was wanting to see your layer configuration in the eSearchWidget.xml.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Julie,

   Thanks for the data for the test case. I will look into it as soon as I get some time.
0 Kudos
DongxingMa
Emerging Contributor
Dongxing,

  Actually I was wanting to see your layer configuration in the eSearchWidget.xml.



Sorry, simply followed the previous user who put the REST services directory info there, my bad.

Below are the configurations of layer wPressurizedMain and wMeter. I don't think there is any syntax
error there,I feel it's just subtype field can't be handled by the widget. because once the subtype
field is turned off in the map mxd, the same configuration works very well, but never worked when the subtype
field turned on.

Please let me know if you need anything else.

Thanks,
Dongxing

-----------------------------------------------------------------------------------------------

  <layer>
   <token/>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <enableprintgrid>true</enableprintgrid>
   <name>PressurizedMain</name>
   <url>http://owd-gis1/arcserver101/rest/services/OtayDashBoard/FacilityQuery_Test2/MapServer/6</url>
   <expressions>
    <expression alias="OBJECTID" textsearchlabel="Search by OBJECTID:">
     <values>
      <value prompt="Example: 1,2,3">OtayMaint.OTAYDATA.wPressurizedMain.OBJECTID = [value]</value>
     </values>
    </expression>
    <expression alias="FacilityID" textsearchlabel="Search by FacilityID:">
     <values>
      <value prompt="Example: S-055-0003">OtayMaint.OTAYDATA.wPressurizedMain.FacilityID LIKE '[value]%'</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select a pressurizedmain line</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>OtayMaint.OTAYDATA.wPressurizedMain.FacilityID</titlefield>
   <fields all="false">
    <field name="OtayMaint.OTAYDATA.wPressurizedMain.FacilityID" gridfield="true" alias="FacilityID" />
    <field name="OtayMaint.OTAYDATA.wPressurizedMain.OBJECTID" gridfield="true" alias="OBJECTID" />
    <field name="OtayMaint.OTAYDATA.wPressurizedMain.InstallDate" gridfield="true" alias="InstallDate"/>
    <field name="OtayMaint.OTAYDATA.wPressurizedMain.Diameter" gridfield="true" alias="Diameter"/>
    <field name="OtayMaint.OTAYDATA.wPressurizedMain.PressureRating" gridfield="true" alias="PressureRating"/>
    <field name="otaypub.dbo.vw_wASBUILTS_URL.AsBuiltNo" gridfield="true" alias="AsBuiltNo" />
    <field name="otaypub.dbo.vw_wASBUILTS_URL.ASBUILTURL" gridfield="false" alias="ASBUILTURL" hyperlinkgridfield="true" hyperlinkaliastext="{otaypub.dbo.vw_wASBUILTS_URL.ASBUILTURL}" hyperlinkgridicon="assets/images/i_lego.png" />
   </fields>
   <links>
    <link alias="ASBUILTURL" disablelinksifnull="true" disableinpopups="true">
     <![CDATA[{otaypub.dbo.vw_wASBUILTS_URL.ASBUILTURL}]]>
     <icon><![CDATA[assets/images/i_biomass.png]]></icon>
    </link>
   </links>
   <zoomscale usegeometry="true" zoompercent="1.6" />
   <autoopendatagrid>true</autoopendatagrid>
   <queryattachments>false</queryattachments>
  </layer>

  <layer>
   <token/>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <enableprintgrid>true</enableprintgrid>
   <name>Potable Meters</name>
   <url>http://owd-gis1/arcserver101/rest/services/OtayDashBoard/FacilityQuery_Test2/MapServer/1</url>
   <expressions>
    <expression alias="FacilityID" textsearchlabel="Search by FacilityID:">
     <values>
      <value prompt="Example: M-065-1140">OtayMaint.OTAYDATA.wMeter.FacilityID LIKE '[value]%'</value>
     </values>
    </expression>
    <expression alias="MeterNumber" textsearchlabel="Search by MeterNumber:">
     <values>
      <value prompt="Example: 99100287">GoldStandard.dbo.Meter_Account.METER_NUMBER LIKE '[value]%'</value>
     </values>
    </expression>
    <expression alias="SERVICELOCID" textsearchlabel="Search by SERVICELOCID:">
     <values>
      <value prompt="Example: 12625">GoldStandard.dbo.Meter_Account.SERVICELOCID LIKE '[value]%'</value>
     </values>
    </expression>
    <expression alias="ACCT_NO" textsearchlabel="Search by ACCT_NO:">
     <values>
      <value prompt="Example: 206-0052-60">GoldStandard.dbo.Meter_Account.ACCT_NO LIKE '[value]%'</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select a Meter</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>OtayMaint.OTAYDATA.wMeter.FacilityID</titlefield>
   <fields all="false">
    <field name="GoldStandard.dbo.Meter_Account.METER_NUMBER" gridfield="true" alias="MeterNumber" />
    <field name="GoldStandard.dbo.Meter_Account.SERVICELOCID" gridfield="true" alias="SERVICELOCID" />
    <field name="GoldStandard.dbo.Meter_Account.ACCT_NO" gridfield="true" alias="ACCOUNT NUMBER" />
    <field name="OtayMaint.OTAYDATA.wMeter.AsBuiltNo" gridfield="true" alias="AsBuiltNo" />
    <field name="otaypub.dbo.vw_wASBUILTS_URL.ASBUILTURL" gridfield="false" alias="ASBUILTURL" hyperlinkgridfield="true" hyperlinkaliastext="{otaypub.dbo.vw_wASBUILTS_URL.ASBUILTURL}" hyperlinkgridicon="assets/images/i_lego.png" />
   </fields>
   <links>
    <link alias="ASBUILTURL" disablelinksifnull="true" disableinpopups="true">
     <![CDATA[{otaypub.dbo.vw_wASBUILTS_URL.ASBUILTURL}]]>
     <icon><![CDATA[assets/images/i_biomass.png]]></icon>
    </link>
   </links>
   <zoomscale usegeometry="true" zoompercent="1.6" />
   <autoopendatagrid>true</autoopendatagrid>
   <queryattachments>false</queryattachments>
  </layer>

-----------------------------------------------------------------------------------------------
0 Kudos
HiranDias
Emerging Contributor
Hi Robert.
Thank you for your help on that issue implementing the between command on my e-search Widget. I would like to ask you if is it possible to search using geographic coordinates. For example, if i create two boxes to input two coordinates, can i generate a selection box delimiting an area, instead of using the graphical tool ?

   �??�??�??�??�??(x,y)
   �??�??�??�??�??�?? �??
   �??�??�??�??�??�?? �??
(x,y)�??�??�??�??
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Hiran,

   Sure this is possible if you are using the source code and understand development in Flex/Actionscript. Now if you are really asking if I can provide the code, then you are going to be disappointed as my todo list is far to long right now.
0 Kudos