<?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: can TemplatePickers be dynamic? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-templatepickers-be-dynamic/m-p/572848#M12914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;follow up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while building a test case for ESRI support, this just started working on its own (though very strangely at first, load the app &amp;amp; the templates appear blank, refresh it &amp;amp; they appear, refresh it again, they're blank--this went on for 10-15 minutes before it just worked). i guess its a flakey map service or is just this just something that happens w/arcGIS server from time-to-time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 03:21:26 GMT</pubDate>
    <dc:creator>PaulHastings1</dc:creator>
    <dc:date>2013-07-19T03:21:26Z</dc:date>
    <item>
      <title>can TemplatePickers be dynamic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-templatepickers-be-dynamic/m-p/572847#M12913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i need to change a static set of TemplatePickers to be dynamic (set of feature layers will be dynamic going forward). they were stored in an Accordion &amp;amp; while i can dynamically add NavigatorContent to the Accordion, adding the TemplatePicker in the same way isn't working--they turn up blank except for the last NavigatorContent which contains a more or less random TemplatePicker (code below). i tried callLater, etc. in case it was a timing issue. not sure what to try next.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can workaround this using a single static TemplatePicker &amp;amp; a combo box to swap feature layers but its a radical departure from the existing UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
// loop thru feature layers, turn them on &amp;amp; setup TemplatePickers, add to accordion
for (key in ippLayers) {
 ippLayers[key].visible=true;
 //template picker
 tPicker=new TemplatePicker();
 tPicker.featureLayers=[ippLayers[key]];
 tPicker.id=currentServiceLayers&lt;I&gt;.ippID+"Picker";
 tPicker.x=0;
 tPicker.y=0;
 tPicker.percentHeight=100;
 tPicker.percentWidth=100;
 tPicker.setStyle("skinClass",skins.IPPTemplateSkin);
 tPicker.addEventListener(TemplatePickerEvent.SELECTED_TEMPLATE_CHANGE,templateSelectedHandler,false);
 // accordion nav content
 navContent=new NavigatorContent();
 navContent.percentWidth=100;
 navContent.percentHeight=100;
 navContent.label=currentServiceLayers&lt;I&gt;.name;
 navContent.layout=vLayout;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 navContent.addElement(tPicker);
 // add to accordion
 infrastructureAccordion.addChild(navContent);
 i++;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 11:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-templatepickers-be-dynamic/m-p/572847#M12913</guid>
      <dc:creator>PaulHastings1</dc:creator>
      <dc:date>2013-07-10T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: can TemplatePickers be dynamic?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-templatepickers-be-dynamic/m-p/572848#M12914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;follow up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while building a test case for ESRI support, this just started working on its own (though very strangely at first, load the app &amp;amp; the templates appear blank, refresh it &amp;amp; they appear, refresh it again, they're blank--this went on for 10-15 minutes before it just worked). i guess its a flakey map service or is just this just something that happens w/arcGIS server from time-to-time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 03:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/can-templatepickers-be-dynamic/m-p/572848#M12914</guid>
      <dc:creator>PaulHastings1</dc:creator>
      <dc:date>2013-07-19T03:21:26Z</dc:date>
    </item>
  </channel>
</rss>

