eSearch Widget Modification

1911
9
07-25-2012 07:01 AM
BenjaminViss
New Contributor
Hi,

I have been searching all over the forums, trying to find proper step-by-step instructions to modify the .xml of the eSearch widget.
Does someone know where I can find this?
I am specifically looking to add my own customized layers and queries. It's not as straight forward as I thought!
Great widget by the way!

Any help would be great.
Thanks,
Benjamin
Tags (2)
0 Kudos
9 Replies
AnthonyGiles
Frequent Contributor
Benjamin,

Robert included a .pdf file in the download zip that details the config file

I have attached here if you are missing it

Regards

Anthony
0 Kudos
BenjaminViss
New Contributor
Thanks,
Yeah I got that one. I'm sure its my inexperience, but I cant make it work to add my own layer and have it query that. Just a basic streets layer from ArcGIS:

http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer

Cant find the proper expressions/values/prompts to insert, to make it work.
Just started on this widget so I'm clueless as to what needs to be done.

Benjamin
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   The World Streetmap service is a cached service from ArcGIS online and does not support querying.
0 Kudos
BenjaminViss
New Contributor
Robert,
Which do you suggest using?
0 Kudos
AnthonyGiles
Frequent Contributor
Benjamin

Try using one from here:

http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/...

Please dont forget to mark the post as answered

Regards

Anthony
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   I am a little perplexed by that question... What are you wanting? What attributes are you attempting to return and for what purpose? Do you not have your own map services that you want to query?
0 Kudos
BenjaminViss
New Contributor
Robert,
Sorry to be unclear. I am interested in adding a layer such as http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityDetailed/CityBaseMap_Parcels/MapServer/0
and have my staff be able to query the STNAM or PARCEL.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Benjamin,

   So the layer portion of your SearchWidget.xml would look like this then:

        <layer>
            <definitionexpression></definitionexpression>
            <enableexport>true</enableexport>
            <name>Parcels</name>
            <url>http://gisserv.phila.gov/ArcGIS/rest/services/GSG_CityDetailed/CityBaseMap_Parcels/MapServer/0</url>
            <expressions>
                <expression alias="Street Name" textsearchlabel="Search Street Name:">
                    <values>
                        <value prompt="Example: REINHARD" >upper(STNAM) LIKE upper('%[value]%')</value>
                    </values>
                </expression>
                <expression alias="Parcel Number" textsearchlabel="Search Parcel Number:">
                    <values>
                        <value prompt="Example: 0014">upper(PARCEL) LIKE upper('[value]%')</value>
                    </values>
                </expression>
            </expressions>
            <graphicalsearchlabel>Use one of the graphical search tools to select Parcels</graphicalsearchlabel>
            <spatialsearchlayer>true</spatialsearchlayer>
            <titlefield>RECSUB</titlefield>
            <fields all="true" />
            <links/>
            <zoomscale usegeometry="true" zoompercent="2"></zoomscale>
        </layer>
0 Kudos
BenjaminViss
New Contributor
This example & guidance is all I needed. I will be adding more layers based on this example.
Thanks Robert, just needed a 'push' in the right direction. I'm glad I can now use your widget.
0 Kudos