<?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 Re: TOC Expand 2.0 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249359#M5927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You said you were able to add your dynamic layer under the operationallayers tag....I can't seem to get mine to work.&amp;nbsp; I'm wondering if you could show/tell me "how" you added it - heres mine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;operationallayers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;layer label="stuff" type="dynamic" visible="true" alpha=".5" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://severname/arcgis/services/test_maps/stuff/MapServer" rel="nofollow" target="_blank"&gt;http://severname/arcgis/services/test_maps/stuff/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/operationallayers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The service is working in ArcGIS server (as stated above - its a dynamic service, not tiled), as I can preview it in ArcCatalog, and its in the same projection as the basemaps (WGS 84 Web Mercator). It appears in the "more" box with the other services, but not on the map itself.&amp;nbsp;&amp;nbsp; Could it be a permissions issue for the folder itself in the IIS? I'm stumped, and also very new to the SFV 2.0 (I never tried using 1.3). I even tried the IP instead of server name, no go.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Aug 2010 23:12:09 GMT</pubDate>
    <dc:creator>DanielOchoa</dc:creator>
    <dc:date>2010-08-03T23:12:09Z</dc:date>
    <item>
      <title>TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249356#M5924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, I junked my 1.3 site and have downloaded the 2.0 Flex Viewer template. I have my map services plugged in and I am starting fresh. The config file is a bit different. I see that the "Live Maps" from the 1.3 template are now under the "More.." button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have successfully added my dynamic layer under the operationallayers tag in the config.xml and the service shows up under the "More.." button. I now want my map service under "More..." to be expanded to show all of the layers available for toggling. Would that be in the LayerListWidget.mxml?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 21:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249356#M5924</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2010-08-03T21:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249357#M5925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matthew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Just add this to the MapSwitcherWidget.mxml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//Add this import
import com.esri.viewer.components.toc.tocClasses.TocMapLayerItem;

//Add this to the very end of the init function
callLater(expandTOC);

//Add this new function
private function expandTOC():void
&amp;nbsp;&amp;nbsp; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.openItems = toc.dataProvider.source;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var item:TocMapLayerItem in toc.openItems) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (item.isTopLevel()){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.expandItem(item, true);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249357#M5925</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T12:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249358#M5926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well done, Robert! Thanks for not giving up on me. I will stop complaining now. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 22:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249358#M5926</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2010-08-03T22:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249359#M5927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You said you were able to add your dynamic layer under the operationallayers tag....I can't seem to get mine to work.&amp;nbsp; I'm wondering if you could show/tell me "how" you added it - heres mine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;operationallayers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;layer label="stuff" type="dynamic" visible="true" alpha=".5" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://severname/arcgis/services/test_maps/stuff/MapServer" rel="nofollow" target="_blank"&gt;http://severname/arcgis/services/test_maps/stuff/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/operationallayers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The service is working in ArcGIS server (as stated above - its a dynamic service, not tiled), as I can preview it in ArcCatalog, and its in the same projection as the basemaps (WGS 84 Web Mercator). It appears in the "more" box with the other services, but not on the map itself.&amp;nbsp;&amp;nbsp; Could it be a permissions issue for the folder itself in the IIS? I'm stumped, and also very new to the SFV 2.0 (I never tried using 1.3). I even tried the IP instead of server name, no go.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 23:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249359#M5927</guid>
      <dc:creator>DanielOchoa</dc:creator>
      <dc:date>2010-08-03T23:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249360#M5928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How does one edit an mxml when there isnt one there? There's one SWF and and one XML...or is the mxml the uncompiled swf?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 00:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249360#M5928</guid>
      <dc:creator>DanielOchoa</dc:creator>
      <dc:date>2010-08-04T00:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249361#M5929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Yes a mxml file is a uncompiled swf. You need to be sure you downloaded the source code for the viewer and not just the compiled version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you sign in using your global id&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the Viewer's source code link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=3f6a0bfee48949a88df50bf7686ec72a"&gt;http://www.arcgis.com/home/item.html?id=3f6a0bfee48949a88df50bf7686ec72a&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 01:04:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249361#M5929</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-08-04T01:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249362#M5930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel, my map service just seems to work. It is also dynamic and takes a few seconds for the layers to render, but they do show up. Are you sure the primary check box is on for the service before you toggle the individual layers? I have mine not visible by default so I have to make sure to do this. Do you have any permissions set for this service that would cause it not to appear?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how I have my service referenced in the config.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;operationallayers&amp;gt;&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;&amp;nbsp;&amp;nbsp; &amp;lt;layer label="Facilities and Infrastructure" type="dynamic" visible="false"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; preload="true"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/ArcGIS/rest/services/EOCWebMercator/MapServer?token=xxx"/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/operationallayers&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 19:15:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249362#M5930</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2010-08-04T19:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249363#M5931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;lt;operationallayers&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;layer label="stuff" type="dynamic" visible="true" alpha=".5" url="http://severname/arcgis/services/test_maps/stuff/MapServer"/&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;/operationallayers&amp;gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you're missing the "rest"? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;operationallayers&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;layer label="stuff" type="dynamic" visible="true" alpha=".5" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://severname/arcgis/" rel="nofollow" target="_blank"&gt;http://severname/arcgis/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;Red&amp;quot;;"&gt;rest/&lt;/SPAN&gt;&lt;SPAN&gt;services/test_maps/stuff/MapServer"/&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/operationallayers&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 17:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249363#M5931</guid>
      <dc:creator>CPennington</dc:creator>
      <dc:date>2010-08-05T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249364#M5932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for answering my post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think alot of folks like me are coming from a different viewer config (in my case, web adf/.NET environment/C#) and are not familiar with some of the simpler yet critical setup issues.&amp;nbsp; In my case, I wasnt using REST services in my Web ADF viewer, so I did not have my REST WebServices set up correctly (or at all!).&amp;nbsp; After researching, thats what I traced my problem to.&amp;nbsp; I re-ran the web application post install and fixed my REST config file. Once this was done, everything worked fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a good link regarding how I solved my issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2399&amp;amp;t=271160"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2399&amp;amp;t=271160&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=293637"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=1696&amp;amp;t=293637&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=262557"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=262557&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this guide should be on your server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\DeveloperKit\Help\REST\gettingstarted.html&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Making progress - thanks for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert - thanks for your help as well!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 17:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249364#M5932</guid>
      <dc:creator>DanielOchoa</dc:creator>
      <dc:date>2010-08-05T17:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: TOC Expand 2.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249365#M5933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone tried removing the live layer widget to the toolbar instead of the mapswitcher?&amp;nbsp; You know creating a separate widget not attached to the basemap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Karen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 07:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/toc-expand-2-0/m-p/249365#M5933</guid>
      <dc:creator>karenvolarich</dc:creator>
      <dc:date>2010-08-11T07:40:24Z</dc:date>
    </item>
  </channel>
</rss>

