<?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: TOCGroup widget proxy problems in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450729#M12896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I needed to come back to this issue as setting IdentityManager to false was not that great of a solution. I found that a simple edit in TOC.as would allow the honoring of the proxy on services which were accessed by id/layer-index (e.g. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://site.com/arcgis/rest/MyService/Mapserver/12" rel="nofollow" target="_blank"&gt;http://site.com/arcgis/rest/MyService/Mapserver/12&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using the TOC Group Widget for Flex Viewer 3.1 (which I believe is widget version 3.1.5 according to "VERSION" const in TOCGroupWidget.mxml) and in this file near (or at) line 618, I needed to change this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var arc:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(msName.substring(0,msName.lastIndexOf("/")));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var arc:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(msName.substring(0,msName.lastIndexOf("/")),FeatureLayer(layer).proxyURL);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where I include a new parameter (second parameter) in the "new" ArcGISDynamicMapServiceLayer declaration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far this has worked. Hopefully this will help out anyone who has the same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 16:00:55 GMT</pubDate>
    <dc:creator>GerardoGarcia</dc:creator>
    <dc:date>2014-03-07T16:00:55Z</dc:date>
    <item>
      <title>TOCGroup widget proxy problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450726#M12893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are currently using rscheitlin's TOCGroup widget version 3.1, in our 3.3 Flex Viewer app. I've enabled secure proxy application via asp.net. However, it seems the list of services in "&amp;lt;includedLayers&amp;gt;" tag of the TOCGroupWidget.xml file causes a "login" popup to appear for all the secured/proxy-enabled services. If I set "Identitymanager...enabled = false" then the popups don't appear nor are there any errors. However, is there a better way to include the proxy url in a config or do I need to change the source of the TOCGroup widget to correctly honor the proxy service? Let me know if I need more explanation and thanks for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jerry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 18:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450726#M12893</guid>
      <dc:creator>GerardoGarcia</dc:creator>
      <dc:date>2013-09-25T18:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: TOCGroup widget proxy problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450727#M12894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jerry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This was an issue that I believe was addressed in a later release from 3.1 and as this widget is now retired I am not remembering much about it right now. The replacement widget the Enhanced LayerList widget (3.4) does not have this issue either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 19:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450727#M12894</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-09-25T19:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: TOCGroup widget proxy problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450728#M12895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah! So, instead of the TOCGroup widget we should be using the "Enhanced LayerList widget"? Either way I'll take a look at the newer TOC widget. Thanks for the help, as always.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jerry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 19:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450728#M12895</guid>
      <dc:creator>GerardoGarcia</dc:creator>
      <dc:date>2013-09-25T19:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: TOCGroup widget proxy problems</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450729#M12896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, I needed to come back to this issue as setting IdentityManager to false was not that great of a solution. I found that a simple edit in TOC.as would allow the honoring of the proxy on services which were accessed by id/layer-index (e.g. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://site.com/arcgis/rest/MyService/Mapserver/12" rel="nofollow" target="_blank"&gt;http://site.com/arcgis/rest/MyService/Mapserver/12&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using the TOC Group Widget for Flex Viewer 3.1 (which I believe is widget version 3.1.5 according to "VERSION" const in TOCGroupWidget.mxml) and in this file near (or at) line 618, I needed to change this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var arc:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(msName.substring(0,msName.lastIndexOf("/")));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var arc:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(msName.substring(0,msName.lastIndexOf("/")),FeatureLayer(layer).proxyURL);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where I include a new parameter (second parameter) in the "new" ArcGISDynamicMapServiceLayer declaration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far this has worked. Hopefully this will help out anyone who has the same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 16:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/tocgroup-widget-proxy-problems/m-p/450729#M12896</guid>
      <dc:creator>GerardoGarcia</dc:creator>
      <dc:date>2014-03-07T16:00:55Z</dc:date>
    </item>
  </channel>
</rss>

