<?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 update the ids in grid of specific rows?</title><link>https://community.appian.com/discussions/f/user-interface/21756/how-to-update-the-ids-in-grid-of-specific-rows</link><description>in the editable grid i am having i am displaying Questions and some other values on the basis of Sort id , Where sort ID is not primary key , i have also provided button to add new rows in between existing rows . below code works fine and increment the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to update the ids in grid of specific rows?</title><link>https://community.appian.com/thread/85225?ContentTypeID=1</link><pubDate>Tue, 31 Aug 2021 09:13:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b37b473b-2b46-4733-a918-bdbdc69c19b7</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;Can you share UI and explain more?&lt;br /&gt;&lt;br /&gt;But for your question how to update specific rows you can write condition like below and call it in the saveInto of any fields&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
  items: ri!Questions,
  expression: if(
    and(fv!item.active, tointeger(fv!item.id) &amp;gt; 1),
    a!update(fv!item, &amp;quot;id&amp;quot;, 1),
    fv!item
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>