<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Connect with cofig file dynamically. in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/connect-with-cofig-file-dynamically/m-p/433005#M10084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using sample flex viewer.Now&amp;nbsp; I want to connect with cofig file dynamically i.e. in ConfigManager.as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(Application.application.deptCode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 1: //connect with department1 config file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2: //connect with department2 config file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each department has its associated cogif file.Now in HomePage I created buttons.When user clicks on Department1 button cofig1 should be loaded and so on.I defined one variable &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Bindable]public var deptCode;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On buttton click i am changing value of this variable But when i access this variable in my ConfigManager file then it is creating problem.Further code of ConfigManager&amp;nbsp; doesn't execute&amp;nbsp; whenever i access this variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me how to access this Homepage variable in ConfigManager.as file.Is another alternative exists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 05:25:30 GMT</pubDate>
    <dc:creator>KiranVyas</dc:creator>
    <dc:date>2010-05-11T05:25:30Z</dc:date>
    <item>
      <title>Connect with cofig file dynamically.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/connect-with-cofig-file-dynamically/m-p/433005#M10084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using sample flex viewer.Now&amp;nbsp; I want to connect with cofig file dynamically i.e. in ConfigManager.as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(Application.application.deptCode)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 1: //connect with department1 config file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2: //connect with department2 config file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each department has its associated cogif file.Now in HomePage I created buttons.When user clicks on Department1 button cofig1 should be loaded and so on.I defined one variable &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Bindable]public var deptCode;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On buttton click i am changing value of this variable But when i access this variable in my ConfigManager file then it is creating problem.Further code of ConfigManager&amp;nbsp; doesn't execute&amp;nbsp; whenever i access this variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me how to access this Homepage variable in ConfigManager.as file.Is another alternative exists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 05:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/connect-with-cofig-file-dynamically/m-p/433005#M10084</guid>
      <dc:creator>KiranVyas</dc:creator>
      <dc:date>2010-05-11T05:25:30Z</dc:date>
    </item>
  </channel>
</rss>

