Select to view content in your preferred language

Enhanced Search Widget Setup - URL

3655
14
Jump to solution
06-25-2012 06:40 AM
ionarawilson1
Deactivated User
Hi,

I am trying to setup the enhanced search widget in Flash Builder, but I have some questions. The first and main question so far is:

In the Enhanced Search Widget URL Search Configuration it says:

To use this capability all you have to do is use a URL like this:
http://gislap134/FlexViewer2.1/index.html?search=R1&slayer=0&exprnum=0&showdatagrid=true

So, my question is: where do I use this URL?




Is this a URL of a GIS Service with a layer? Where do I put this url? In the main configuration file,there is a URL for the search widget. Instead of url="widgets/eSearch/SearchWidget.swf",

should I use my own layer service with these search parameters (http://gislap134/FlexViewer2.1/index.html?search=R1&slayer=0&exprnum=0&showdatagrid=true)


Thank you for any help!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ionara,

   The Flex Viewer is a web based application and is brought up in the users choice of web browsers using a specific url http://gis.calhouncounty.org/FlexViewer3.0/index.html The enhanced search widget use additional information attached to this url to perform a search (i.e. http://gis.calhouncounty.org/FlexViewer3.0/index.html?config=config-eSearch.xml&search=2&slayer=4&exprnum=1). You add these additional url paramaters to the url when you provide the link to your viewer to end user (i.e. from a hyperlink  in an email or a link (anchor) in a html page).

View solution in original post

0 Kudos
14 Replies
RobertScheitlin__GISP
MVP Emeritus
Ionara,

   Those instructions are for once you have your viewer deployed and are attempting to use the URL Serach capability. To setup the URL Search capability in a Flash Builder development environment is much more involved and requires several changes to your Flash Builder project. Are you looking for the steps to change your Flash Builder environment?
0 Kudos
ionarawilson1
Deactivated User
Hi Robert,

I want to recreate this website (link below) with Flash Builder and Flex Viewer so the user can use the drop down boxes to search for different industries and see them on a map. So I believe your widget could help, but I would like to set it up first so I can see how it works. Thanks



http://tfsfrd.tamu.edu/fpd/fpdtx.asp
0 Kudos
ionarawilson1
Deactivated User
By the way, I am not going to recreate all the dropdown boxes, just the company, county, industry type, product and species
0 Kudos
ionarawilson1
Deactivated User
Right now after I copy the eSearch folder from the uncompiled folder (FV3.0uncompiled), then adding the widget to the config file of my project, when I run the index.mxml, and click on the icon for the enhanced search I get an error message: Widget Manager, Error #2035. If I close the error message and click on the icon again, I just see a WidgetManager window without the error and the clocks keeps running infinitely. What am I missing on this step that I just want to run flex viewer with the compiled version? Thank you!
0 Kudos
ionarawilson1
Deactivated User
Now that I used the config file that you provided it worked. But how should I go about changing setting it up for my own service? I am still not sure about the URL you mentioned it on the enhanced search widget url PDF. Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ionara,

   So setting up the eSearch widget for using your own map services is pretty simple and documented in the Enhanced Search Widget XML Configuration.pdf. For now forget about the URL search feature until you get the eSearch setup to work with your map service layers.
0 Kudos
ionarawilson1
Deactivated User
So I guess, I can use the compiled version and just change the way it is documented in the XML configuration pdf, right? Just out of extreme curiosity, what is the URL search?
0 Kudos
ionarawilson1
Deactivated User
Also, in this case should I use a feature layer, dynamic layer or tiled layer?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ionara,

   Most of your questions are going to answer them selves when you actually get in there are start configuring the widget. The type of layer does not matter as the layer does not even have to be part of the map to be searched. The URL Search is a capability of the eSearch to perfrom a search when the viewer is initally loaded. Normally a search is only perfromed after some user interaction with the widget, but the url search allows the search to be fired off automatically based on the search criteria recieved from the url of the viewer.
0 Kudos