<?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>Update/Insert values  in the array/rule input in interface</title><link>https://community.appian.com/discussions/f/general/14671/update-insert-values-in-the-array-rule-input-in-interface</link><description>Hi All, 
 I have a requirement: 
 I have a rule input(cdt) ri!details with two field Id,Name. Now i have a local variable array type local!name:{&amp;quot;A&amp;quot;,&amp;quot;B&amp;quot;,&amp;quot;C&amp;quot;}, 
 Now i want to save this local!name values into ri!details.Name on button click, like the below</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Update/Insert values  in the array/rule input in interface</title><link>https://community.appian.com/thread/65730?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 17:04:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e72f3d8b-d80d-4196-a45e-336bfb70fe37</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi - assuming your rule input ri!details is an array, then something like this meets your needs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!buttonWidget(
        label: &amp;quot;Set Names&amp;quot;,
        saveInto: {
          a!forEach(
            items: local!name,
            expression: a!save(
              ri!details[fv!index].Name,
              fv!item
            )
          )
        }
      )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update/Insert values  in the array/rule input in interface</title><link>https://community.appian.com/thread/65727?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 16:54:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5056aafb-c384-4caa-b085-e875358f614e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;is ri!details an array?&amp;nbsp; And if not, is the &amp;quot;Name&amp;quot; field in the CDT an array?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>