<?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 hide column from a!gridField()</title><link>https://community.appian.com/discussions/f/user-interface/7067/how-to-hide-column-from-a-gridfield</link><description>I am trying to hide a column from a!gridField() if certain condition is met using an IF statement. It is not working for me. Please see the document attached for details and the error message I am getting 
 supporting_document.txt 
 OriginalPostID-197530</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to hide column from a!gridField()</title><link>https://community.appian.com/thread/28373?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 07:53:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c10766bd-80ca-43bb-9fc3-1a1246969e7f</guid><dc:creator>erickp</dc:creator><description>Excellent. That worked! Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to hide column from a!gridField()</title><link>https://community.appian.com/thread/28372?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 07:46:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d6ddb60-c9fd-401b-8d1a-b5c1525fd120</guid><dc:creator>sikhivahans</dc:creator><description>@erickp Try doing as mentioned below and to the best of my knowledge, it should do the job. Please do let us know your experience post testing it.&lt;br /&gt;&lt;br /&gt;if(&lt;br /&gt;  cast(&lt;br /&gt;    1,&lt;br /&gt;    property(&lt;br /&gt;      ri!qcData_cdt,&lt;br /&gt;      "reviewTypeCode_int",&lt;br /&gt;      ""&lt;br /&gt;    )&lt;br /&gt;  ) &lt;&gt; 6,&lt;br /&gt;  &lt;valueIfTrue&gt;,&lt;br /&gt;  &lt;valueIfFalse&gt;&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to hide column from a!gridField()</title><link>https://community.appian.com/thread/28370?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 07:37:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc887e9a-0103-4b38-b59f-fc7cc4b434d6</guid><dc:creator>erickp</dc:creator><description>The attached code is inside a gridLayout(). For some strange reason, when ri!qcData_cdt.reviewTypeCode_int = 6, the code doesn&amp;#39;t work. What might be happening? Check the attached document for details.&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/5483.supporting_5F00_document.txt"&gt;supporting_document.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to hide column from a!gridField()</title><link>https://community.appian.com/thread/28369?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 06:37:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:810959c3-233d-4b0c-b8f3-8be5b3506ed2</guid><dc:creator>erickp</dc:creator><description>I had already tried option 1 using {} and it didn&amp;#39;t work. Your option number 2 gave me an idea of what to do and I actually just did it. It worked. Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to hide column from a!gridField()</title><link>https://community.appian.com/thread/28367?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 06:11:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0c3b611-19d1-47f0-9deb-e8c319e24536</guid><dc:creator>sikhivahans</dc:creator><description>@erickp Hi, rather than including a null in the value of 'headerCells', 'columnConfigs' and 'rows 'attributes, I would like to suggest to take a look at following alternatives:&lt;br /&gt;&lt;br /&gt;Option - 1: Use {} instead of null. But afaik this won't work in all cases.&lt;br /&gt;&lt;br /&gt;headerCells: {&lt;br /&gt;      a!gridLayoutHeaderCell(&lt;br /&gt;        label: ""&lt;br /&gt;      ),&lt;br /&gt;\t  if(&lt;br /&gt;\t  ri!someProperty[1].property_int=6,&lt;br /&gt;      a!gridLayoutHeaderCell(&lt;br /&gt;          label: "testing",&lt;br /&gt;          align: "RIGHT"&lt;br /&gt;        ),&lt;br /&gt;\          t{}&lt;br /&gt;\t  )&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;Option - 2: Provide a set of values derived based on a condition. This helps definitely in all cases and especially when Option - 1 fails.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;headerCells: if(&lt;br /&gt;\tri!someProperty[1].property_int=6,&lt;br /&gt;\t{&lt;br /&gt;      a!gridLayoutHeaderCell(&lt;br /&gt;        label: ""&lt;br /&gt;      )&lt;br /&gt;    },&lt;br /&gt;\t{&lt;br /&gt;      a!gridLayoutHeaderCell(&lt;br /&gt;        label: ""&lt;br /&gt;      ),&lt;br /&gt;      a!gridLayoutHeaderCell(&lt;br /&gt;        label: "testing",&lt;br /&gt;        align: "RIGHT"&lt;br /&gt;      )&lt;br /&gt;    }&lt;br /&gt;\t)&lt;br /&gt;&lt;br /&gt;To the best of my knowledge, one of the either options discussed above should do the job and do let us know if you have follow-up questions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to hide column from a!gridField()</title><link>https://community.appian.com/thread/28365?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 05:36:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80eb4cc4-639a-432f-8efd-a1c9458b41f3</guid><dc:creator>erickp</dc:creator><description>Sorry. I meant to say gridLayout instead of gridField()&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>