<?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: Cannot get FeatureTemplatePicker to work in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381300#M3276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, thank you!&amp;nbsp; I had set the referencing outlet but forgot to set the outlets for the dataSource and delegate, no wonder it didn't work!&amp;nbsp; Once I did that my templates showed up!&amp;nbsp; In case anyone else forgets this crucial step, here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2016-04-11 at 8.49.43 PM.png" class="image-1 jive-image" height="344" src="/legacyfs/online/194565_Screen Shot 2016-04-11 at 8.49.43 PM.png" style="height: 344px; width: 486.9406392694064px;" width="487" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 00:28:26 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-04-12T00:28:26Z</dc:date>
    <item>
      <title>Cannot get FeatureTemplatePicker to work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381298#M3274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to implement the feature template picker found &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/FeatureLayerEditingSample/swift/FeatureLayerEditing/FeatureTemplatePickerController.swift"&gt;here&lt;/A&gt;.&amp;nbsp; I have added the layer I need to the feature template picker controller, but for some reason UITableView is not populating the templates.&amp;nbsp; I have not made any changes to the GitHub sample for the &lt;SPAN style="font-family: 'courier new', courier;"&gt;FeatureLayerTemplatePickerController.swift&lt;/SPAN&gt; file.&amp;nbsp; Here is where I'm adding the templates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo; color: #008400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // MARK: set feature layer template picker to sightings&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bb2ca2;"&gt;func&lt;/SPAN&gt; webMap(webMap: &lt;SPAN style="color: #4f8187;"&gt;AGSWebMap&lt;/SPAN&gt;!, didLoadLayer layer: &lt;SPAN style="color: #4f8187;"&gt;AGSLayer&lt;/SPAN&gt;!) {&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bb2ca2;"&gt;if&lt;/SPAN&gt; &lt;SPAN style="color: #bb2ca2;"&gt;let&lt;/SPAN&gt; featureLayer = layer &lt;SPAN style="color: #bb2ca2;"&gt;as&lt;/SPAN&gt;? &lt;SPAN style="color: #4f8187;"&gt;AGSFeatureLayer&lt;/SPAN&gt; {&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bb2ca2;"&gt;if&lt;/SPAN&gt; (featureLayer.&lt;SPAN style="color: #4f8187;"&gt;name&lt;/SPAN&gt; == &lt;SPAN style="color: #d12f1b;"&gt;"EAB Sighting"&lt;/SPAN&gt;){&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&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; &lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #4f8187;"&gt;sightings&lt;/SPAN&gt; = featureLayer&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo; color: #4f8187;"&gt;&lt;SPAN style="color: #000000;"&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; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;sightings&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;editingDelegate&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo; color: #4f8187;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&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; &lt;/SPAN&gt;//Add templates from this layer to the Feature Template Picker&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo; color: #4f8187;"&gt;&lt;SPAN style="color: #000000;"&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; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;featureTemplatePickerController&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #31595d;"&gt;addTemplatesFromLayer&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;sightings&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo; color: #4f8187;"&gt;&lt;SPAN style="color: #000000;"&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; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; template &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;featureTemplatePickerController&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;infos&lt;SPAN style="color: #000000;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&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;&amp;nbsp; &lt;SPAN style="color: #3d1d81;"&gt;print&lt;/SPAN&gt;(template.&lt;SPAN style="color: #4f8187;"&gt;featureTemplate&lt;/SPAN&gt;.&lt;SPAN style="color: #4f8187;"&gt;name&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&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; }&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;It seems like the templates are being added to the template picker correctly because my print statement shows the template names:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&lt;IMG alt="template_printout.png" class="image-1 jive-image" height="146" src="https://community.esri.com/legacyfs/online/193049_template_printout.png" style="width: 616px; height: 145.3644859813084px;" width="616" /&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;This matches the legend of the Webmap I'm using (left image below).&amp;nbsp; I cannot figure out what is going on.&amp;nbsp; When I present the template picker view controller it is a blank table.&amp;nbsp; I have added an outlet to the UITable as well (right image below):&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&lt;IMG alt="legend.png" class="image-2 jive-image" height="290" src="https://community.esri.com/legacyfs/online/193051_legend.png" style="width: 273px; height: 290.12546125461256px;" width="273" /&gt;&lt;IMG alt="outlet_ref.png" class="image-3 jive-image" height="305" src="https://community.esri.com/legacyfs/online/193052_outlet_ref.png" style="width: 404px; height: 305.60645161290324px;" width="404" /&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;&lt;IMG alt="initial_view.png" class="image-4 jive-image" height="569" src="https://community.esri.com/legacyfs/online/193053_initial_view.png" style="width: 310px; height: 569.5px;" width="310" /&gt;&lt;IMG alt="empty_template.png" class="image-5 jive-image" height="602" src="https://community.esri.com/legacyfs/online/193054_empty_template.png" style="width: 331px; height: 601.6725806451614px;" width="331" /&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: Menlo;"&gt;Has anyone else ran into this issue?&amp;nbsp; I cannot figure out what I'm doing wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 04:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381298#M3274</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-03-25T04:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get FeatureTemplatePicker to work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381299#M3275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check what is the state at this &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/FeatureLayerEditingSample/swift/FeatureLayerEditing/FeatureTemplatePickerController.swift#L53"&gt;line&lt;/A&gt; and &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/FeatureLayerEditingSample/swift/FeatureLayerEditing/FeatureTemplatePickerController.swift#L68"&gt;this&lt;/A&gt;​? Are the 5 templates getting appended fine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned you have added an outlet to the table. How about the datasource and delegate? Are &lt;A href="https://github.com/Esri/arcgis-runtime-samples-ios/blob/master/FeatureLayerEditingSample/swift/FeatureLayerEditing/FeatureTemplatePickerController.swift#L81-L115"&gt;these methods&lt;/A&gt; getting called successfully?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381299#M3275</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2016-04-11T21:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get FeatureTemplatePicker to work</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381300#M3276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, thank you!&amp;nbsp; I had set the referencing outlet but forgot to set the outlets for the dataSource and delegate, no wonder it didn't work!&amp;nbsp; Once I did that my templates showed up!&amp;nbsp; In case anyone else forgets this crucial step, here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2016-04-11 at 8.49.43 PM.png" class="image-1 jive-image" height="344" src="/legacyfs/online/194565_Screen Shot 2016-04-11 at 8.49.43 PM.png" style="height: 344px; width: 486.9406392694064px;" width="487" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 00:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/cannot-get-featuretemplatepicker-to-work/m-p/381300#M3276</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-12T00:28:26Z</dc:date>
    </item>
  </channel>
</rss>

