<?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: Append a feature ID into a Popup in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/append-a-feature-id-into-a-popup/m-p/464527#M3984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't really have to use the editing in popup for this. Simply use the &lt;A class="el" href="https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_feature-p.html#a25ac0d1f49f03c58b6f5a30edf44f99c" style="color: #7a7782; font-weight: bold; font-family: Roboto, sans-serif; font-size: 14px; background-color: #fbfbfb;"&gt;setAttributeWithInteger:forKey:&lt;/A&gt;​ on the feature, to set the &lt;STRONG style="background-color: #fafafa; color: #494949; font-size: 13px; font-family: 'Gotham Book', Helvetica, Arial, sans-serif;"&gt;YOLORTAHATTID&lt;/STRONG&gt; attribute for that feature. And the next time when you open the popups, the value should be updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 17:33:43 GMT</pubDate>
    <dc:creator>GagandeepSingh</dc:creator>
    <dc:date>2016-05-02T17:33:43Z</dc:date>
    <item>
      <title>Append a feature ID into a Popup</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/append-a-feature-id-into-a-popup/m-p/464526#M3983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my application i need to connect all the &lt;EM&gt;Feature&lt;/EM&gt; with the road to relate which feature belongs which road. There for in all feature i have a field called "YOLORTAHATTIID" and I m trying to fill this field with the road ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the Scheme:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;1. Click on any Feature on the map&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;2. &lt;SPAN style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;When popup comes, &lt;SPAN style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt; at the scene where YOLORTAHATTID is null and at this point we have no ID attached to YOLORTAHATTID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;1. &lt;SPAN style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;Select the road Icon.&lt;/SPAN&gt; When we press on this button, we go back to map view and we select road feature&lt;BR /&gt;2. Then we get the ID attribute of the field, and return back to the popup with the "Road ID" filled into "YOLORTAHATTID"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;3. and able to save it !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;Here is my demonstration :&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;&lt;IMG __jive_id="196184" alt="Roadmap copy.png" class="image-1 jive-image" src="/legacyfs/online/196184_Roadmap copy.png" style="width: 620px; height: 877px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;Thanks for the help to&amp;nbsp; : &lt;/SPAN&gt;&lt;A href="https://community.esri.com/migrated-users/44376"&gt;Gagandeep Singh&lt;/A&gt;&lt;SPAN style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;​&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN data-orgid="612968353316331521" data-story-id="story_f1d3ad3b9a231d4ddaef166706199ceb" data-text="1. Click on ‘+’ button 2. Select any feature 3. We go to scene where YOLORTAHATTID is and at this point we have no ID attached to YOLORTAHATTID 1. then we need to add button. When we press on this button, we go back to map view and pin selected feature 2. Then near this pin we have title with road ID 3. If we press on pin on the map, then we go to popup view where we can see YOLORTAHATTID with road ID" data-timestamp="1461327720588" data-userid="612968353312137216" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;"&gt;I have created a function to dismiss the popup when clicked on maps icon, and rest is mystery for now &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;func&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; getTheID(){&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;popupsVC&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;dismissViewControllerAnimated&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;true&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;, completion: &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;nil&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;popupsVC&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;startEditingCurrentPopup&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;toggleGeometryEditUI&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;tappedFeatures&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;count&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN class="s6"&gt;0&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&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&gt;&lt;SPAN class="s7"&gt;print&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;tappedFeatures&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p4"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Here is the sample application : &lt;A href="https://github.com/ozcan-durak/testApp" title="https://github.com/ozcan-durak/testApp"&gt;GitHub - ozcan-durak/testApp&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image" style="color: #494949; font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; background-color: #fafafa;" /&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 09:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/append-a-feature-id-into-a-popup/m-p/464526#M3983</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-04-26T09:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Append a feature ID into a Popup</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/append-a-feature-id-into-a-popup/m-p/464527#M3984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't really have to use the editing in popup for this. Simply use the &lt;A class="el" href="https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_feature-p.html#a25ac0d1f49f03c58b6f5a30edf44f99c" style="color: #7a7782; font-weight: bold; font-family: Roboto, sans-serif; font-size: 14px; background-color: #fbfbfb;"&gt;setAttributeWithInteger:forKey:&lt;/A&gt;​ on the feature, to set the &lt;STRONG style="background-color: #fafafa; color: #494949; font-size: 13px; font-family: 'Gotham Book', Helvetica, Arial, sans-serif;"&gt;YOLORTAHATTID&lt;/STRONG&gt; attribute for that feature. And the next time when you open the popups, the value should be updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 17:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/append-a-feature-id-into-a-popup/m-p/464527#M3984</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2016-05-02T17:33:43Z</dc:date>
    </item>
  </channel>
</rss>

