Select to view content in your preferred language

Passing Parameter to Flex Viewer

20494
114
01-14-2011 03:46 AM
CurtNielsen
Occasional Contributor
I would like to pass a parameter, parcel id, to flex viewer and have the map pan to that location. I have modified the Search widget to use a layer that we can search by parcel ID. Just want the same capability if I pass a parameter, paracle ID, to http://mynode/FlexViewer. Maybe something like http://mynode/FlexViewer?request=widget&version=2.1&WidgetName=Search&ParcelID=1234

Thank you!
Tags (2)
0 Kudos
114 Replies
AmberReynolds
Deactivated User
AND just as I thought - we are not using 10 databases, so I had to add the:
queryTask.useAMF = false; before the query execution.

Eureka!!!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amber,

   Great news. The funny thing is that I am sitting here writing my Developer Summit powerpoints for my presentation and I have a bullet in one that says don't forget to set that to false if you are not using ArcGIS Server 10...
0 Kudos
BillLotz
Frequent Contributor
Thank you Mark, this worked great.
If it wasn't for this forum, and contributors like Robert, Mark, and many others, my Flex application would be rather plain and my aggravation level would be much higher.
Thanks,
Bill
0 Kudos
SteveWhitehead__GISP
Regular Contributor
Thanks Marc!!!  This is a really big help to me (and it looks like others too!!).
0 Kudos
SteveWhitehead__GISP
Regular Contributor
I might be asking too much here, but I am wondering if it is possible to have an info popup come up on the queried polygon feature in the url?
0 Kudos
JeffHarmon
Emerging Contributor
Great question Steve.  Also, any insight on changing the zoom level?  Thanks this has been very helpful.
0 Kudos
SteveWhitehead__GISP
Regular Contributor
Jeff, I added the map.scale within the maploadcomplete.  It zooms to the set scale. 

//hideProgress(); // Hide the progress bar
map.extent = unionExtent;
map.scale = 5000; // Zoom to queried polygon
0 Kudos
JeffHarmon
Emerging Contributor
Thanks Steve.  That is exactly what I was looking for.
0 Kudos
MollyAzami
Emerging Contributor
I am trying to use Robert's solution in the following thread:
http://forums.esri.com/Thread.asp?c=...04#msgid923901

but am having trouble with something that seems very basic....

I cannot find the "SiteContainer.xmxl"

I searched my solution in FB4 but only found 2 mentions of it...one in the code I just pasted from the thread and the other in a comment in the AppEvent.as

Do I need to create one?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Molly,

   If you are using Flex Viewer 2.x then there is no longer a SiteContainer, it is now called ViewerContainer.
0 Kudos