Select to view content in your preferred language

Very basic Flex Veiwer question.

1202
8
02-10-2011 03:38 AM
DougKampe
Regular Contributor
I am completely new to desigining web applications with the Flex api.  Normally, we've gone the no-frills route and just created web applications with ArcGIS Server Manager.  We wanted to spice things up a bit so we are trying Flex.  I have one seemingly very basic question.

I need to create different web viewers for different agencies all with different appearances, widgets, and data, but there is only one config.xml file.  It's easy enough to modify the index example the ESRI packages with the download, but I need to deviate from their example.  What am I missing?  Also, where is the config.xml file refrenced exactly? 

This is probably a dumb question, but documentation is sparse. 

Thanks,
Doug
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Doug,

   The Flex Viewer allows for multiple Config.xml files to be use with the same viewer. Configuring the viewer for multiple agencies with different widgets and look is exactly what the viewer is good at. The url that is used can have a url parameter called config (i.e config="config-agency1.xml" or config="config-agency2.xml"). Documentation is really not that bad. I just think people are skimming over it. Details on the Main configuration file are here:

http://help.arcgis.com/en/webapps/flexviewer/help/mainconfig.htm
0 Kudos
DougKampe
Regular Contributor
Doug,

   The Flex Viewer allows for multiple Config.xml files to be use with the same viewer. Configuring the viewer for multiple agencies with different widgets and look is exactly what the viewer is good at. The url that is used can have a url parameter called config (i.e config="config-agency1.xml" or config="config-agency2.xml"). Documentation is really not that bad. I just think people are skimming over it. Details on the Main configuration file are here:

http://help.arcgis.com/en/webapps/flexviewer/help/mainconfig.htm


I stand corrected.  After playing with the Flex Viewer for some time now, I've found that this tool is pretty easy to use and configure.  Like any new tool, there is a learning curve.  Pour over the documentation and these posts and it'll give you most of the info one needs.
0 Kudos
TylerWaring
Frequent Contributor
Greetings, The link above seems to be broken. I am looking for documentation on the main config file for Flex Viewer 2.3.1.
Thanks, Tyler
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
TylerWaring
Frequent Contributor
Thanks for forwarding along the link. I am interested in learning how to to change the Flex Viewer's main config.xml file at run time. This was not detailed in the documentation regarding the comfig.xml file. Is it possible?
Thanks, Tyler
0 Kudos
MLowry
by
Frequent Contributor
The idea is to actually have several different config xml's with different names, and you decide which config to use in the URL of the flex viewer. It is the same principle Robert uses to demo all of his various awesome widgets he has created in the gallery. So you would have configNSA.xml, configFBI.xml, configDOD.xml, so on and so forth, and each flex viewer URL will use one of the configs as you pass the parameter in the url config=configNSA.xml
0 Kudos
TylerWaring
Frequent Contributor
Thanks for the reply. I have a bunch of config.xml files that I can generate different applications with. However, what if I want to switch between config.xml files at runtime? I would like to change between profiles elegantly within the flex viewer. Is this possible?  

Thanks, Tyler
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tyler,

   Some others have tried this also. It can be done, but I have not seen a way to do this without reloading the viewer.
0 Kudos