Select to view content in your preferred language

eSearch URL Not Working

4774
13
Jump to solution
03-23-2015 07:03 AM
mpboyle
Regular Contributor

We recently migrated to a new ArcGIS Server that is using SSL and whose data sources for services are now using a local file gdb instead of our production SDE gdb.  One thing our Assessor's office uses is the eSearch widget to pass a search string in the URL to find a particular parcel by PIN number.  That no longer seems to work and I'm wondering what we need to do to fix it...

Example URL used: https://..../index.html?esearch=142830800200000

Is there something in the eSearch widget I need to update, or some other config.xml file?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Matthew,

  Sorry I normally assume that people are using the most current versions of the viewer and eSearch...

Your url would be

https://gis.linncounty.org/webapps/auditor/flexviewer/index.html?search=142830800200000&slayer=0&exp...

Notice back in viewer 3.0 it was search=x not esearch=x

View solution in original post

0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus

Matthew,

   Since you are not specifying the layer number or the expression number in the URL, are you sure that in your eSearch config you are using it has the parcel layer as the very first layer listed and that the very first expression is the right one as well?

You can refer to your Enhanced Search Widget URL Search Configuration.pdf in the download.

0 Kudos
mpboyle
Regular Contributor

I inherited this app, so I have no idea how to configure the URL search string.  I can tell you the layer we want to query is not the first layer listed, the layer number of layer we want to query is 18.

I would need some guidance on how to configure either the eSearch .xml or what needs to be entered in the URL.

Thanks!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matthew,

It is all about where the layer that you are attempting to search from the url is listed in the eSearchWidget.xml, not about what the layer id is in the map service. This is a typical esearch url (as outlined in the Enhanced Search Widget URL Search Configuration.pdf:

gislap134/FlexViewer2.1/index.html?esearch=R1&slayer=0&exprnum=0

Where slayer=0 specifies that you want to search the first layer listed in the eSearchWidget.xml and exprnum=0 specifies that you want to use the first expression configured for that first layer.

Basically your url of ?esearch=142830800200000 is saying the same thing, just shorthand.

So if your parcel layer is not the first layer listed in your eSearchWidget.xml and your first expression in that layer is not setup to query the field that your value of 142830800200000 would be found in then you have a problem in your configuration.

0 Kudos
mpboyle
Regular Contributor

Robert,

Below is a screenshot of the eSearch widget .xml file.  The expression we'd want to use is the 2nd one listed, the Search GPN expression.  Does this mean we need to use exprnum=2 or does this expression block count as 1 item?

Thanks again!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matthew,

   The exprnum and slayer are both zero based so you would need to use exprnum=1

0 Kudos
mpboyle
Regular Contributor

So what would the URL need to look like to add in the PIN number...?

0 Kudos
mpboyle
Regular Contributor

...that does not work...

https://gis.linncounty.org/webapps/auditor/flexviewer/index.html?esearch=142830800200000&slayer=0&ex...

If I use the widget and enter the GPN value, it does...but passing the search through the URL does not.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matthew,

  Sorry I normally assume that people are using the most current versions of the viewer and eSearch...

Your url would be

https://gis.linncounty.org/webapps/auditor/flexviewer/index.html?search=142830800200000&slayer=0&exp...

Notice back in viewer 3.0 it was search=x not esearch=x

0 Kudos