<?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>Improperly scoped variable &amp;#39;fv!row&amp;#39; in gridColumn</title><link>https://community.appian.com/discussions/f/data/21801/improperly-scoped-variable-fv-row-in-gridcolumn</link><description>Hi, 
 Could you tell me why the &amp;quot;fv!row&amp;quot; is not accepted for gridColumn attributes other than &amp;quot;value&amp;quot; please ? 
 How may I hide this column using showWhen ? 
 a!gridColumn( label: fv!row.label =&amp;gt; Improperly scoped variable value: fv!row.amount, =&amp;gt; OK</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Improperly scoped variable 'fv!row' in gridColumn</title><link>https://community.appian.com/thread/85418?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 16:51:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f906059e-ae69-45ff-9070-0b56f7e05e89</guid><dc:creator>cedric02</dc:creator><description>&lt;p&gt;Thank&amp;nbsp;you&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/selvakumark"&gt;Selvakumar Kumarasamy&lt;/a&gt;, you&amp;#39;re right the column has to be hided for the whole grid, and not depending of the row.&lt;br /&gt;I&amp;#39;ve missed this evident detail ;-)&lt;/p&gt;
&lt;p&gt;I will use a global variable to determine if the column has to be displayed or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Improperly scoped variable 'fv!row' in gridColumn</title><link>https://community.appian.com/thread/85417?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 16:44:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e452e8e8-2277-444f-8b2d-a9fb433825cb</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Hi Cedric,&lt;/p&gt;
&lt;p&gt;My thoughts - Only the value part changes for every row in a grid column. The attributes like label, width &amp;amp; showWhen conditions remain static on the whole grid and don&amp;#39;t vary between the rows. Hence the scope of &amp;#39;&lt;strong&gt;fv!row&lt;/strong&gt;&amp;#39; is limited only to the &amp;#39;value&amp;#39; attribute.&lt;/p&gt;
&lt;p&gt;Coming to your requirement,&lt;/p&gt;
&lt;p&gt;If you want to hide an entire column, then this link will help you -&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.3/recipe-conditionally-hide-a-column-in-a-grid.html"&gt;https://docs.appian.com/suite/help/21.3/recipe-conditionally-hide-a-column-in-a-grid.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to hide the value when the row is inactive, then you can code like below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridColumn(
  label: &amp;quot;Label&amp;quot;,
  value: if(fv!row.isactive,fv!row.amount,null())
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>