<?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>Editable grid</title><link>https://community.appian.com/discussions/f/user-interface/26071/editable-grid</link><description>I am having a editable grid in that I am adding a rows and in sometime I deleted some of the rows then the values depending upon it needs to be updated 
 For eg. I am having a field in editable grid called marks and total. If I deleted a one row(marks</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Editable grid</title><link>https://community.appian.com/thread/102091?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 11:55:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c263525d-6d6b-4f51-a14f-1a9f68822450</guid><dc:creator>ujjwalr0002</dc:creator><description>&lt;p&gt;This is same code used in the thread harshit mentioned I have just added a delete button it is handling the scenario.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!gridData: {
    a!map(
      col1: &amp;quot;&amp;quot;,
      col2: &amp;quot;&amp;quot;,
      col3: &amp;quot;&amp;quot;,
      col4: &amp;quot;&amp;quot;,
      col5: &amp;quot;&amp;quot;,
      col6: &amp;quot;&amp;quot;
    )
  },
  a!gridLayout(
    headerCells: {
      a!gridLayoutHeaderCell(label: &amp;quot;Col1&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Col2&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Col3&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Col4&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Col5&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;Col6&amp;quot;),
      a!gridLayoutHeaderCell(label: &amp;quot;&amp;quot;)
    },
    addRowLink: a!dynamicLink(
      label: &amp;quot;Add&amp;quot;,
      saveInto: a!save(
        local!gridData,
        append(
          local!gridData,
          a!map(
            col1: &amp;quot;&amp;quot;,
            col2: &amp;quot;&amp;quot;,
            col3: &amp;quot;&amp;quot;,
            col4: &amp;quot;&amp;quot;,
            col5: &amp;quot;&amp;quot;,
            col6: &amp;quot;&amp;quot;
          )
        )
      )
    ),
    rows: a!forEach(
      items: local!gridData,
      expression: if(
        fv!index = count(local!gridData),
        a!gridRowLayout(
          contents: {
            a!textField(readOnly: true()),
            a!textField(readOnly: true()),
            a!textField(readOnly: true(), value: &amp;quot;Total&amp;quot;),
            a!textField(
              readOnly: true(),
              value: sum(index(local!gridData, &amp;quot;col4&amp;quot;, {}))
            ),
            a!textField(
              readOnly: true(),
              value: sum(index(local!gridData, &amp;quot;col5&amp;quot;, {}))
            ),
            a!textField(
              readOnly: true(),
              value: sum(index(local!gridData, &amp;quot;col6&amp;quot;, {}))
            ),
            a!textField(readOnly: 1)
          }
        ),
        a!gridRowLayout(
          contents: {
            a!textField(
              value: fv!item.col1,
              saveInto: fv!item.col1
            ),
            a!textField(
              value: fv!item.col2,
              saveInto: fv!item.col2
            ),
            a!textField(
              value: fv!item.col3,
              saveInto: fv!item.col3
            ),
            a!textField(
              value: fv!item.col4,
              saveInto: fv!item.col4
            ),
            a!textField(
              value: fv!item.col5,
              saveInto: fv!item.col5
            ),
            a!textField(
              value: fv!item.col6,
              saveInto: fv!item.col6
            ),
            a!richTextDisplayField(
              value: a!richTextIcon(
                icon: &amp;quot;times&amp;quot;,
                link: a!dynamicLink(
                  saveInto: a!save(
                    local!gridData,
                    remove(local!gridData, fv!index)
                  )
                )
              )
            )
          }
        )
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid</title><link>https://community.appian.com/thread/102088?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 11:39:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:711b32c5-8bf4-4fc8-8814-5bb40a30c37d</guid><dc:creator>udhayakumarm000856</dc:creator><description>&lt;p&gt;yes but this is different scenario I am asking&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Editable grid</title><link>https://community.appian.com/thread/102068?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 10:28:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d77b4df4-0e34-45bd-9ad0-3e8883b00a43</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You already have a duplicate thread for this conversation -&amp;nbsp;&lt;a href="https://community.appian.com/discussions/f/user-interface/25983/interface"&gt;community.appian.com/.../interface&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>