<?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 delete editable grid rows from database</title><link>https://community.appian.com/discussions/f/general/20486/how-to-delete-editable-grid-rows-from-database</link><description>I have used the remove icon as the last column of each row of the editable grid. When I click on it the respective row gets deleted from the rule input it is storing but not from the database table. I am using the below code: 
 
 
 How to delete the specific</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to delete editable grid rows from database</title><link>https://community.appian.com/thread/79917?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2021 17:56:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e9f3f49-8eb8-488c-8d5e-57dbd4f1fb51</guid><dc:creator>ayushimittal</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;
&lt;p&gt;I have removed that deletion part from my implementation as of now. I will definitely discuss it when I will implement it again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete editable grid rows from database</title><link>https://community.appian.com/thread/79912?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 19:05:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b27da0dd-562f-4578-8a1a-987485f8c3b4</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Are you able to provide any further detail?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete editable grid rows from database</title><link>https://community.appian.com/thread/79911?ContentTypeID=1</link><pubDate>Fri, 26 Feb 2021 18:56:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2eade384-864f-47cd-8816-c53f808c7607</guid><dc:creator>ayushimittal</dc:creator><description>&lt;p&gt;Thank you Mike for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, I am unable to implement it correctly yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete editable grid rows from database</title><link>https://community.appian.com/thread/79885?ContentTypeID=1</link><pubDate>Thu, 25 Feb 2021 17:20:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c03eb023-ed37-4272-9d82-d519133f619a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Are you really required to delete DB rows?&amp;nbsp; This is usually not recommended from a data archival perspective, unless strictly required by your use case.&amp;nbsp; The more common (and much easier to fix) method is to have a column in your table to indicate &amp;quot;active&amp;quot; and/or &amp;quot;deleted&amp;quot; status.&amp;nbsp; That is, all rows would start out with an &amp;quot;IS_ACTIVE&amp;quot; property of TRUE, or alternatively, an &amp;quot;IS_DELETED&amp;quot; property of FALSE (either would work, it kinda depends on your style and your own project&amp;#39;s standards).&lt;/p&gt;
&lt;p&gt;Then when you click the &amp;quot;remove&amp;quot; icon in the editable grid row, you would simply have it flip that flag for that row, and write the results along with the rest of the rows when you next save them.&amp;nbsp; As an aside, I suggest using the Rich Text component for this rather than Image Field, because the style is more consistent with Appian and it&amp;#39;s a lot more flexible in its configuration and behavior.&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!richTextDisplayField(
  value: {
    a!richTextItem(
      text: {
        a!richTextIcon(
          icon: &amp;quot;remove&amp;quot;,
          caption: &amp;quot;Remove (inactivate) this row in the DB.&amp;quot;,
          color: &amp;quot;NEGATIVE&amp;quot;,
          size: &amp;quot;MEDIUM&amp;quot;
        )
      },
      link: a!dynamicLink(
        saveInto: {
          a!save(
            local!currentRow.isActive,
            false()
          )
        }
      ),
      linkStyle: &amp;quot;STANDALONE&amp;quot;,
      showWhen: local!currentRow.isActive
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>