Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Reload viewer container ?

$
0
0
Hi everibody,

I made an ArcGIS Viewer for Flex from 3.5 version that launch the good configuration file depending to the user authentified. For this I use
Code:

ViewerContainer.configFile = configFile;
where the variable configFile is a string equal to the URL of the xml.

But a user could have many configurations possible, so I made a button in the HeaderController which permit to change the configuration. Then I'd like to reload the HeaderController with the new config, I tried that:
Code:

ViewerContainer.configFile = newConfigFile;
ViewerContainer.getInstance().configManager.loadConfig();
ViewerContainer.getInstance().initialize();

But instead of reloading the HeaderController, it adds a new one behind the current one. Perhaps you'll see it below in transparency:


How really don't know how to reload it...

I'm open to any kind of solution ;)

Thanks in advance,
Ben

Viewing all articles
Browse latest Browse all 2097

Trending Articles