<?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 Create a new Record On a Related Feature Table in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452361#M2317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a related table to my Feature Service called "notes".&amp;nbsp; I want to simply add a note to this related table that links back to my feature service.&amp;nbsp; I believe i have set up the proper keys/relationship.&amp;nbsp; I have also been able to cast this table as both a ServiceFeatureTable or a FeatureTable.&amp;nbsp; Now i am working on simply trying to create a record that will work both online and offline.&amp;nbsp; I can work out all the UI stuff, but is there a quick example of how to just make a new record with a new "note" column entry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ServiceFeatureTable onlineFeatureTable
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;onlineFeatureTable = map.tables.get(0);



&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:29:42 GMT</pubDate>
    <dc:creator>MKa</dc:creator>
    <dc:date>2021-12-12T16:29:42Z</dc:date>
    <item>
      <title>Create a new Record On a Related Feature Table</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452361#M2317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a related table to my Feature Service called "notes".&amp;nbsp; I want to simply add a note to this related table that links back to my feature service.&amp;nbsp; I believe i have set up the proper keys/relationship.&amp;nbsp; I have also been able to cast this table as both a ServiceFeatureTable or a FeatureTable.&amp;nbsp; Now i am working on simply trying to create a record that will work both online and offline.&amp;nbsp; I can work out all the UI stuff, but is there a quick example of how to just make a new record with a new "note" column entry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ServiceFeatureTable onlineFeatureTable
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;onlineFeatureTable = map.tables.get(0);



&lt;/PRE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452361#M2317</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2021-12-12T16:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new Record On a Related Feature Table</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452362#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So now I have this table as&amp;nbsp; a QmlServiceFeatureTable but cannot seem to create a feature on that related table.&amp;nbsp; Every time I try to make a feature, the result is null.&amp;nbsp; i simply want to create a record in this related table, update the attributes, and apply edits.&amp;nbsp; I cant get the create feature to work get a new feature, let alone get to the point where I can addfeature and applyedits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ServiceFeatureTable onlineFeatureTable
onlineFeatureTable = map.tables.get(0); //THIS is an empty table that is related to one of my feature layers, confirmed that it exists

//None of these work, the resulting feature is null?
//1
var onlineFeature = onlineFeatureTable.createFeature(); //Null result

//2
var featureAttributes = {"1" : "1", "2" : &lt;SPAN&gt;"2"&lt;/SPAN&gt;};
var onlineFeature = onlineFeatureTable.createFeatureWithAttributes(featureAttributes, null); //Null result

&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//3
var featureAttributes = {"1" : "1", "2" : &lt;SPAN&gt;"2"&lt;/SPAN&gt;};
var onlineFeature = onlineFeatureTable.createFeature(featureAttributes); //Null result&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452362#M2318</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2021-12-12T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new Record On a Related Feature Table</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452363#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have only had success when creating features with a geometry.&lt;/P&gt;&lt;P&gt;Esri::ArcGISRuntime::Feature* feature = table-&amp;gt;createFeature(attributes, geometry, parent);&lt;/P&gt;&lt;P&gt;Also, make sure the attributes match the table correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 20:52:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452363#M2319</guid>
      <dc:creator>MichaelReese</dc:creator>
      <dc:date>2019-03-13T20:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new Record On a Related Feature Table</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452364#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So did you create a related table that has geometry.&amp;nbsp; I cannot even create a feature on my related table, but my related table has no geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/create-a-new-record-on-a-related-feature-table/m-p/452364#M2320</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2019-03-14T13:42:33Z</dc:date>
    </item>
  </channel>
</rss>

