Select to view content in your preferred language

eSearch Widget - Initial search from URL parameters

3455
5
Jump to solution
03-06-2014 09:16 AM
JordanBaumgardner
Frequent Contributor
My client has a requirement to use urls like MyFlexViewer.html?search=12345 and have it search for 1235 and zoom to it. (their old version did this, and use the 1st search term to make it happen)

I've seen several treads from the 2.x days showing how to add the code to do that. But also see many comments about 3.6 handling this nicely - the notes say "See instructions" - But... I can't seem to find them. I have read the config.pdf but didn't see it. I took a peek at the code, but found nothing.

Thanks in advance.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jordan,

   Wrong PDF. Look in this one:

Enhanced Search Widget URL Search Configuration.pdf 😉

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Jordan,

   Did you look in the Enhanced Search Widget URL Search Configuration.pdf

It gives examples:

http://gislap134/FlexViewer2.1/index.html?esearch=R1&slayer=0&exprnum=0&showdatagrid=true
0 Kudos
JordanBaumgardner
Frequent Contributor
Ya, just looked again in Enhanced Search Widget XML Configuration Page*1*of*13* * Developed*By:*Robert*Scheitlin*Version 3.6.4 �?? Mar 3, 2014

But could not see any example with eserach= or search=. I swear I read it ; )

http://gislap134/FlexViewer2.1/index.html?esearch=R1&slayer=0&exprnum=0&showdatagrid=true

But lets just take this appart:
-- esearch=R1 where r1 is the <layer><name>?

-- slayer=0 where 0 is the layer #? but isn't that specified in the <layer><url> as in http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/M...

-- exprnum=0 where 0 is the string to search for?

-- Showdatagird=true - self explanatory.


I'm using the following pdf:
https://raw.github.com/rscheitlin/eSearch/master/Enhanced%20Search%20Widget%20XML%20Configuration.pd...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jordan,

   Wrong PDF. Look in this one:

Enhanced Search Widget URL Search Configuration.pdf 😉
0 Kudos
JordanBaumgardner
Frequent Contributor
Ahhhh, thank you! And my client thanks you too!
0 Kudos
JordanBaumgardner
Frequent Contributor
0 Kudos