<?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>Enabled and disabled in editable grid</title><link>https://community.appian.com/discussions/f/new-to-appian/24581/enabled-and-disabled-in-editable-grid</link><description>Hi All, 
 Below is the screenshot of requirement 
 You can see the item status is disabled against + icon and Enabled against cross icon 
 
 If we click on + icon, status will be changed to enabled and icon will be changed to - automatically.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95174?ContentTypeID=1</link><pubDate>Tue, 17 May 2022 11:03:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b243ced-0664-4b40-9527-7d059a9b994b</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Thanks! Mike, I will try this too. &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95150?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 18:21:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36a00d61-f8e1-46b1-b48a-ede98edcc089</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I wouldn&amp;#39;t use choose() if running an environment already on 22.1 since it now has &lt;em&gt;a!match()&lt;/em&gt;.&amp;nbsp; I usually avoided using choose() before due to its inability to handle any alternate conditions or errors, but now with a!match() i&amp;#39;m actively hunting down older implementations of choose() (as well as instances of &amp;quot;nested ifs&amp;quot;) to replace.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95148?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 17:29:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ebee19b-4c4e-432d-8f4c-ec2cda2fedaa</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use Choose() function instead of having multiple if conditions. Please refer to&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.1/fnc_logical_choose.html"&gt;https://docs.appian.com/suite/help/22.1/fnc_logical_choose.html&lt;/a&gt;&amp;nbsp;for more.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95142?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 17:06:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9441b15f-2107-480d-a812-5933165aa932</guid><dc:creator>jojog0002</dc:creator><description>&lt;p&gt;Hii,&lt;/p&gt;
&lt;p&gt;yes , when changing the status as disable then only the status will be disable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95092?ContentTypeID=1</link><pubDate>Sat, 14 May 2022 03:24:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:844ff3d2-f88a-4196-a177-f08819e6e237</guid><dc:creator>Arul</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When changing the status as disabled that the whole row will be disabled or only the status. Because the status is disabled but the whole row look like an editable. So what purpose are you using that logic?. Correct me if i am wrong&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95089?ContentTypeID=1</link><pubDate>Fri, 13 May 2022 16:53:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2c5b601-0067-4f4f-9065-1f960ef8a68d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This should work though personally I&amp;#39;ve grown to prefer using multiple separate a!richTextIcon() and/or a!richTextItem() fields, each with their own specific conditional &lt;em&gt;showWhen&lt;/em&gt; parameter values, instead of trying to use one all-encompassing field with a dozen if() statements sprinkled about (especially when the if() conditions are all essentially the same).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!richTextDisplayField(
  label: &amp;quot;Action&amp;quot;,
  value: {
    a!richTextIcon(
      showWhen: fv!item.status = &amp;quot;Enabled&amp;quot;,
      icon: &amp;quot;close&amp;quot;,
      caption: &amp;quot;Remove &amp;quot; &amp;amp; fv!item.employee_name,
      link: a!dynamicLink(...),
      color: &amp;quot;NEGATIVE&amp;quot;
    ),
    a!richTextIcon(
      showWhen: fv!item.status &amp;lt;&amp;gt; &amp;quot;Enabled&amp;quot;,
      icon: &amp;quot;plus&amp;quot;,
      caption: &amp;quot;Add &amp;quot; &amp;amp; fv!item.employee_name,
      link: a!dynamicLink(...),
      color: &amp;quot;POSITIVE&amp;quot;
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabled and disabled in editable grid</title><link>https://community.appian.com/thread/95016?ContentTypeID=1</link><pubDate>Thu, 12 May 2022 09:16:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f75f90a0-2ab3-4aef-987a-8a55507b7d38</guid><dc:creator>venkyuppala09</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!richTextDisplayField(
      label: &amp;quot;Action&amp;quot;,
      value: a!richTextIcon(
        icon: if(
          fv!item.status = &amp;quot;Enabled&amp;quot;,
          &amp;quot;close&amp;quot;,
          &amp;quot;plus&amp;quot;
        ),
        altText: if(
          fv!item.status = &amp;quot;Enabled&amp;quot;,
          &amp;quot;Delete &amp;quot;,
          &amp;quot;Add&amp;quot;
        ) &amp;amp; fv!index,
        caption: if(
          fv!item.status = &amp;quot;Enabled&amp;quot;,
          &amp;quot;Remove &amp;quot;,
          &amp;quot;Add&amp;quot;
        ) &amp;amp; fv!item.Employee_Name,
        link: a!dynamicLink(
          value: fv!identifier,
          saveInto: {
            if(
              fv!item.status = &amp;quot;Enabled&amp;quot;,
              a!save(fv!item.status, &amp;quot;Disabled&amp;quot;),
              a!save(fv!item.status, &amp;quot;Enabled&amp;quot;)
            )
          }
        ),
        linkStyle: &amp;quot;STANDALONE&amp;quot;,
        color: if(
          fv!item.status = &amp;quot;Enabled&amp;quot;,
          &amp;quot;NEGATIVE&amp;quot;,
          &amp;quot;POSITIVE&amp;quot;
        )
      )
    )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try this component for last column of your grid. I&amp;#39;ve just saving the status here add other saves as per your requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>