<?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 record to table in Arcade with calculation attribute rule in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209679#M565</link>
    <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;Thank you for this example and the link of the help.&lt;/P&gt;&lt;P&gt;I easily managed to get an example to work. I only knew the return dictionary for multiple fields, but dictionaries are so much more useful and powerful.&amp;nbsp; I thought I had to develop a trigger in Oracle.&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2022 14:34:28 GMT</pubDate>
    <dc:creator>Bart-JanSchoenmakers</dc:creator>
    <dc:date>2022-09-05T14:34:28Z</dc:date>
    <item>
      <title>Append record to table in Arcade with calculation attribute rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209650#M563</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Does anyone knows if it is possible with a Calculation Attribute Rule to append a record to another table?&lt;/P&gt;&lt;P&gt;My objective is whenever a point is edited to write a record to a table.&lt;/P&gt;&lt;P&gt;I’ve been looking around the forum and the help and this doesn’t seem possible in Arcade, however it might be that I missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;Bart-Jan Schoenmakers&lt;/P&gt;&lt;P&gt;Statistics Portugal&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209650#M563</guid>
      <dc:creator>Bart-JanSchoenmakers</dc:creator>
      <dc:date>2022-09-05T10:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Append record to table in Arcade with calculation attribute rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209660#M564</link>
      <description>&lt;P&gt;This is absolutely possible.&lt;/P&gt;&lt;P&gt;Instead of specifying the field for the rule and returning a value, you leave the field empty and return a dictionary. This dictionary has to have a defined structure, which you can find here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Calculation Attribute Rule
// field: empty
// triggers: insert

return {
    edit: [
        {className: "OtherTable",
            adds: [
                {attributes: {TextField: "Value", IntegerField: 5}}
            ]
        }
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: And you can do lots of other things, too. A few examples are listed in this blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_blank"&gt;Advanced Attribute Rules - Editing features on another class with attribute rules (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 12:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209660#M564</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-09-05T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Append record to table in Arcade with calculation attribute rule</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209679#M565</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;Thank you for this example and the link of the help.&lt;/P&gt;&lt;P&gt;I easily managed to get an example to work. I only knew the return dictionary for multiple fields, but dictionaries are so much more useful and powerful.&amp;nbsp; I thought I had to develop a trigger in Oracle.&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 14:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/append-record-to-table-in-arcade-with-calculation/m-p/1209679#M565</guid>
      <dc:creator>Bart-JanSchoenmakers</dc:creator>
      <dc:date>2022-09-05T14:34:28Z</dc:date>
    </item>
  </channel>
</rss>

