<?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 Dynamic Legend (FlexViewLegend3 - RestLegend) at ArcServer version 10 in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dynamic-legend-flexviewlegend3-restlegend-at/m-p/180156#M4243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Upgraded from 9.3.1 to version 10 am now have some problems with the dynamic legend from Robert Scheitlin (&lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299116&amp;amp;mc=27#934254" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299116&amp;amp;mc=27#934254&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; Traced the problem to the LiveMapsWidget.&amp;nbsp;&amp;nbsp; Seems that the requestCount does not equal pResults.length, so the createRepeaterData() function is never called (see code below).&amp;nbsp;&amp;nbsp; When the conditional If is remarked out, the dynamic legend is created.&amp;nbsp;&amp;nbsp; Is this something that changed at version 10, or did we introduce some other bug in our code?&amp;nbsp;&amp;nbsp; Why was the conditional if used in the first place?&amp;nbsp;&amp;nbsp; Is there a reason why we can't use this workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/* conditional remarked out below
/* if (requestCount == pResults.length) 
{
 createRepeaterData();
} 
*/
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
createRepeaterData();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UBC Geography&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:12:38 GMT</pubDate>
    <dc:creator>IanParfitt</dc:creator>
    <dc:date>2021-12-11T09:12:38Z</dc:date>
    <item>
      <title>Dynamic Legend (FlexViewLegend3 - RestLegend) at ArcServer version 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dynamic-legend-flexviewlegend3-restlegend-at/m-p/180156#M4243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Upgraded from 9.3.1 to version 10 am now have some problems with the dynamic legend from Robert Scheitlin (&lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299116&amp;amp;mc=27#934254" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=299116&amp;amp;mc=27#934254&lt;/A&gt;&lt;SPAN&gt;).&amp;nbsp; Traced the problem to the LiveMapsWidget.&amp;nbsp;&amp;nbsp; Seems that the requestCount does not equal pResults.length, so the createRepeaterData() function is never called (see code below).&amp;nbsp;&amp;nbsp; When the conditional If is remarked out, the dynamic legend is created.&amp;nbsp;&amp;nbsp; Is this something that changed at version 10, or did we introduce some other bug in our code?&amp;nbsp;&amp;nbsp; Why was the conditional if used in the first place?&amp;nbsp;&amp;nbsp; Is there a reason why we can't use this workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/* conditional remarked out below
/* if (requestCount == pResults.length) 
{
 createRepeaterData();
} 
*/
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
createRepeaterData();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UBC Geography&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/dynamic-legend-flexviewlegend3-restlegend-at/m-p/180156#M4243</guid>
      <dc:creator>IanParfitt</dc:creator>
      <dc:date>2021-12-11T09:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Legend (FlexViewLegend3 - RestLegend) at ArcServer version 10</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dynamic-legend-flexviewlegend3-restlegend-at/m-p/180157#M4244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if (requestCount == pResults.length)&lt;/PRE&gt;&lt;SPAN&gt; was added for those people that have more than one map service added to their map. I am not sure why this would stop working just because you upgraded your server to 10...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 20:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/dynamic-legend-flexviewlegend3-restlegend-at/m-p/180157#M4244</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-07-23T20:45:25Z</dc:date>
    </item>
  </channel>
</rss>

