<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CDT values</title><link>https://community.appian.com/discussions/f/user-interface/24373/cdt-values</link><description>Hi, 
 In the EDIT mode of the screen data, initially when I load the data my rule input is loading the data into all of fields of the CDT. 
 When I click on &amp;quot;Add Document&amp;quot;, I am trying to use append function. When I select any filed value in the screen</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT values</title><link>https://community.appian.com/thread/94090?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 07:48:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1de5e227-3cd2-4d98-a04b-c0b8b45706b7</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;my recommendation as best practice -&lt;br /&gt;if you try to append a new value:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!save(
  target: local!array,
  value: append(local!array, &amp;#39;type!{urn:com:appian:types:example}ex_DataType&amp;#39;())
)
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT values</title><link>https://community.appian.com/thread/94068?ContentTypeID=1</link><pubDate>Sun, 24 Apr 2022 20:35:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4d0cd90-3ca8-4a2a-b2d0-8466af598232</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are couple of issues with your code.&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You didn&amp;#39;t specify which value you need to save&lt;/li&gt;
&lt;li&gt;You are appending rule input CDT to local variable (local!documents), which is not right if you are populating grid data using rule input CDT&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Your add row link logic should be like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;addRowlink: a!dynamicLink(
          label: &amp;quot;Add Document&amp;quot;,
          value: {
            type!yourCDT/*The CDT type which you have in rule input
            */
          },
          saveInto: {
            a!save(ri!opinionDocuments, append(ri!opinionDocuments, save!value))
          }
        )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Refer to Appian documentation here&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.1/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html"&gt;https://docs.appian.com/suite/help/22.1/recipe-add-edit-and-remove-data-in-an-inline-editable-grid.html&lt;/a&gt; to know how to configure editable grid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>