<?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>I wish to update however it always became to be insert</title><link>https://community.appian.com/discussions/f/new-to-appian/21833/i-wish-to-update-however-it-always-became-to-be-insert</link><description>Sorry, I used update arrow for icon&amp;quot;check&amp;quot; at end of each data row, I wish to update existing information, however, once i fill blank and click update, it always appear to be a new data row for the new information i fill in text blank which wish to be</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85528?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 09:12:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef9e0949-2af5-4a60-9aa3-9b35289ff515</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I can not really follow ...&lt;/p&gt;
&lt;p&gt;A saveInto will only evaluate after the user modifies the value of the field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85527?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 08:27:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6977e5b1-c240-45dd-ace8-922c62e97630</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;such as this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; a!textField(
                          label: &amp;quot;Username&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.KONE_user_name,
                          saveInto: {
                            a!save(target:ri!userinputsheet.KONE_user_name,value:fv!item.KONE_user_name),
                          a!save(target:ri!userrole.NAME,value:save!value),
                          a!save(target:ri!userrole.USER_ID,value:a!localVariables(local!value:fv!item.KONE_user_name,
                          a!forEach(items:rule!KONE_Development_Username_UserId(),expression:if(local!value=fv!item.username,fv!item.userid,{}))
                          ))
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          readOnly: true,
                          validations: {}
                        ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85526?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 08:21:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:78a49e4f-5b90-4a24-ae7b-f35e2513e72e</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;i set the value:fv!item.value saveInto:ri!table.value. I mean if I don&amp;#39;t do anything in that text blank(type or click), then the fv!item.value will not be saveinto ri!value, just leave it null.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85525?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 08:19:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a992843a-9b8b-481e-9dea-e576d32646b4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is super confusing.&lt;/p&gt;
&lt;p&gt;As Ravi said, Appian will insert or update depending on the value of the primary key. If there is not value (null) then it becomes an insert, else an update.&lt;/p&gt;
&lt;p&gt;Now you need to find out what you do to all the data in your interface and whether the PK is null or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85524?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 07:14:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0145bada-cd45-4207-b9ab-6d563bf1ae44</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;I use editable grid to read data by using local!rule and fv!item.value shows in each text blank,then value:fv!item.value&lt;/p&gt;
&lt;p&gt;saveInto:ri!table.value but it is not work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85523?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 06:14:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6e9d836-430d-4882-a139-61e64aa1986f</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;can you give an example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85521?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 06:13:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e018e8e6-b32c-4b94-8afe-bffa4f9ef918</guid><dc:creator>Ravi Roshan</dc:creator><description>&lt;p&gt;If you want to update a row it means the data is already present in your database, hence first you need to query the record which you need to update so you get the primary key id for that record, update the record and let the primary key id assigned/unchanged what you get upon query the record. This will update the record instead of inserting a new row.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85517?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 02:08:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b298dc7-03b2-486a-a50a-db4164eb51fe</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Seems how can I let it recognize the username because i didn&amp;#39;t fill into it, how can I let it auto fill in? Thank&amp;nbsp; you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I wish to update however it always became to be insert</title><link>https://community.appian.com/thread/85516?ContentTypeID=1</link><pubDate>Tue, 07 Sep 2021 01:57:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d4e40692-1d36-46e3-b215-81cc2633390c</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;span&gt; ids for this class must be manually assigned before calling save(). report as this error&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>