<?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>How to save values in different rows in tables?</title><link>https://community.appian.com/discussions/f/new-to-appian/22491/how-to-save-values-in-different-rows-in-tables</link><description>Hi All, 
 I am stcuk with one of the implementation as described below: 
 I have a variable local!a which is having the values like 12;23;34 etc separated by semi-colon, when user click on save button the values 12, 23 and 34 should be saved into different</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to save values in different rows in tables?</title><link>https://community.appian.com/thread/94108?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 13:39:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d3e7d43-6dbe-4e09-8517-0db1be13a8b0</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to share your code, so that we can help you to fix this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save values in different rows in tables?</title><link>https://community.appian.com/thread/87916?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 14:58:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d4e0e57-da14-4429-a0d7-ef95240714e9</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;It think it would be helpful to attach some sample code for what you currently have. What data type is your original variable? What data type are you trying to save into? There&amp;#39;s a lot of permutations so it would be helpful to understand your scenario better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save values in different rows in tables?</title><link>https://community.appian.com/thread/87911?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:48:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7dd28e69-0710-4658-aa11-976057c4ab65</guid><dc:creator>t v s satyanarayana rao</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!a: {12;23;34},
  local!saveData,
  {
    a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;save&amp;quot;,
          saveInto: {
            a!save(
              local!saveData,
              a!forEach(
                items: split(local!a,&amp;quot;;&amp;quot;),
                expression: {
                  id: fv!index,
                  output: fv!item
                }
              )
            )
          }
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="/members/shubhamy0001"&gt;shubhamy0001&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have attached a sample code for the requirement , hope it can be helpful . I am constructing and saving the data in a localvaiable (local!saveData),&amp;nbsp; u can use a cdt in the expression of the foreach and save the value in the respective column.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And the in the button save u can have write to DB function (a!writeToDataStoreEntity())&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>