<?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: Customizing the Add Features template in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867855#M3208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work. Did you try to adjust the code to follow your codebase and your Feature Layer content?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌ , mentioning Runtime QT to see if anyone else have the same issue in that group.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 17:44:54 GMT</pubDate>
    <dc:creator>ErwinSoekianto</dc:creator>
    <dc:date>2018-09-24T17:44:54Z</dc:date>
    <item>
      <title>Customizing the Add Features template</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867852#M3205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Day,&lt;/P&gt;&lt;P&gt;After numerous failed attempts, I was successful in adding features to my feature class using the Add Feature Template in AppStudio. Now, I want these features to have&amp;nbsp;its&amp;nbsp;attributes as its&amp;nbsp;x and y position or lat and long position as well as a user name. How can this be done? I tried using the code below but it did not run,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #595959;"&gt;Map&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; { &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;id:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt; map&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;anchors.fill&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #5c2699;"&gt;parent&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;wrapAroundEnabled&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; { &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;id:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt; featureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;featureTable&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: featureServiceTable &lt;/SPAN&gt;&lt;SPAN class="" style="color: #006a00;"&gt;//when the user clicks on the map, add feature to the feature layer with the mouse coordinates as geometry, and predefined attributes&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;onMouseClicked&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: { &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; featureJson = { &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: { &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: mouse.mapX, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: mouse.mapY, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: mouse.mapPoint.spatialReference }, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;attributes&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: { &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;TYPEDAMAGE&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Minor"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;PRIMCAUSE&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"Earthquake"&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;TYPEDAMAGE_INT&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; } } &lt;/SPAN&gt;&lt;SPAN class="" style="color: #aa0d91;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; (featureServiceTable.featureTableStatus === Enums.FeatureTableStatusInitialized) { featureServiceTable.addFeature(featureJson) } } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Below is a picture of the current attribute table that I want to populate with data.&amp;nbsp;&lt;IMG alt="Attribute Table" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/422701_Example.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867852#M3205</guid>
      <dc:creator>GiatriLalla</dc:creator>
      <dc:date>2018-09-24T17:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Add Features template</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867853#M3206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Giatri,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is hard to read your code without proper indentation. Also when you say it&amp;nbsp;does not run, what is the error message?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Erwin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867853#M3206</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-09-24T17:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Add Features template</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867854#M3207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you for the quick reply. The code used is the “Add Feature” code on this document&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/10-2/qml/guide/edit-features.htm" title="https://developers.arcgis.com/qt/10-2/qml/guide/edit-features.htm"&gt;Edit features—ArcGIS Runtime SDK for Qt | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I did not get an error message when I ran the code. I simply was not able to add a feature. For example, when I clicked the screen, no points were showing up.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:41:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867854#M3207</guid>
      <dc:creator>GiatriLalla</dc:creator>
      <dc:date>2018-09-24T17:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Add Features template</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867855#M3208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work. Did you try to adjust the code to follow your codebase and your Feature Layer content?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2136"&gt;ArcGIS Runtime SDK for Qt&lt;/A&gt;‌ , mentioning Runtime QT to see if anyone else have the same issue in that group.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867855#M3208</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-09-24T17:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Add Features template</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867856#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I’ll retry the code and give you an update. As for searching similar problems, I came up empty handed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from that code, I’ve also used the Add Feature template in AppStudio 3.0 which allows me to add &amp;nbsp;a feature to my Service Feature Table (as shown in the picture). How can I obtain the x and y values of the point Feature in the attribute table?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 18:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867856#M3209</guid>
      <dc:creator>GiatriLalla</dc:creator>
      <dc:date>2018-09-24T18:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing the Add Features template</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867857#M3210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the type of object you are working with,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if it is &lt;A href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-feature.html"&gt;Feature QML Type&lt;/A&gt;, then there is "geometry" property that would return &lt;A href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-geometry.html#geometryType-prop"&gt;Geometry QML Type&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If it is &lt;A href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-point.html"&gt;Point QML Type&lt;/A&gt; already, then there are "x" and "y" property already in this&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 19:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/customizing-the-add-features-template/m-p/867857#M3210</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2018-09-24T19:19:23Z</dc:date>
    </item>
  </channel>
</rss>

