Select to view content in your preferred language

Passing Parameter to Flex Viewer

20500
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
RobertScheitlin__GISP
MVP Emeritus
Amber,

   My first question is you did replace the "<theservername>" with your actual http://yourserver (i.e. http://gislap134) right?

var qFCPre:String = "<theservername>/arcgis/rest/services/";
0 Kudos
MarcWeinshenker1
Regular Contributor


               var qFCPre:String = "<theservername>/arcgis/rest/services/";



Amber,

This is what I was trying to explain before.  You don't want <theservername>.  You want the actual name of the server without any angle brackets < >.

Marc
0 Kudos
AmberReynolds
Deactivated User
Ha! I'm a noob, but not that new! Yes, I replaced it 🙂
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amber,

   Give me an example of what the url looks like that you are trying to pass in.
0 Kudos
AmberReynolds
Deactivated User
Dang forum:
http://xxx.jacksongov.org/parcelviewer/index.cfm?q=ParcelsAndAddresses!6*v=69-710-15-07-00-0-00-000
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amber,

   So you are using a ColdFusion front end to this website?...
0 Kudos
AmberReynolds
Deactivated User
Yes - I thought the same thing, but changing it back to .html doesn't work either.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Amber,

   OK I am stumped on this one. I will put out a detailed document and code to be able to run the search widget or enhanced search widget from the URL like I did for the sample flex viewer, once I get back from the Developer Summit next week. Sorry I was not able to help. In the mean time if you want to continue to debug this than you need to get the Flash Player Debug Version from Adobe's website. Set a break point in the code and run the debug instead of play from flash builder.
0 Kudos
AmberReynolds
Deactivated User
Thanks a lot for everyone's help! I know it's something silly and I'll feel like a moron when I figure it out.  Have fun at the Dev Summit!
0 Kudos