Have you looked into the following User Config Selection Widget:http://www.arcgis.com/home/item.html?id=a28b758b3fc14c5794b30d5c230713fbIt seems like it might do what you are looking for.
So you need to change the value of the configFile variable for your ViewerContainer somehow. Maybe what you could do is hardcode it in setConfigFile(), use a specific config-abc.xml depending on the id of each ViewerContainer.
private function setConfigFile():void { //retrieve FlashVars. var flashvarConfig:String = FlexGlobals.topLevelApplication.parameters.config; if (flashvarConfig) { configFile = flashvarConfig; } //retrieve config from URL and override FlashVar if (urlConfigParams.config) { configFile = urlConfigParams.config; } }
private function setConfigFile():void { //retrieve FlashVars. var flashvarConfig:String = FlexGlobals.topLevelApplication.parameters.config; if (flashvarConfig) { configFile = flashvarConfig; } //retrieve config from Cookie and override FlashVar var cookie:Object = CookieUtil.getCookie("config"); if (cookie){ configFile = cookie.toString(); CookieUtil.deleteCookie("config"); } //retrieve config from URL and override FlashVar and Cookie if (urlConfigParams.config) { configFile = urlConfigParams.config; } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.