<?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>Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/discussions/f/data/20540/hide-read-only-column-hidden-when-cell-value-is-null</link><description>So I have an interface where in a read-only grid the user can select a specific &amp;quot;event&amp;quot; which then shows another read only grid with that particular events information. I would like a way to hid a column in the break down when the value is null but show</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80901?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 15:25:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5768ecd-3b0d-425c-893e-4251d04aba52</guid><dc:creator>pratiks0003</dc:creator><description>&lt;p&gt;hi Allenp,&lt;/p&gt;
&lt;p&gt;you can use show when condition . in that you can use showwhen: not(isnull(ri!data)) . try this onces when you have data then it will be show . apply this on which coloumn to hide&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80086?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 16:13:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82f520bb-9601-478a-800f-110087292786</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The reason I didn&amp;#39;t suggest that is it looks as if they&amp;#39;re checking specifically against a single space character (&amp;quot; &amp;quot;) versus blank.&amp;nbsp; I suppose the view they&amp;#39;re referencing for this record type could be set up so that it intentionally populates a single space instead of blank or null under specific conditions, though I guess maybe I should&amp;#39;ve asked about that assumption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80084?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 16:09:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d561291a-04a8-4231-852c-b7ef9ef7b1cb</guid><dc:creator>davidh0020</dc:creator><description>&lt;p&gt;I might also add that using rule!apn_isNotBlank() may be better in this case since Appian sometimes does type conversion behind the scenes.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;showWhen: rule!apn_isNotBlank(local!rowQueryResult[1].energy)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80057?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:36:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:738e90ff-62a8-4c09-8d16-e043ae8579b0</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;A normal query would work, I assume - can you share a screenshot / code snippet of the current configuration of the &amp;quot;data:&amp;quot; parameter of your grid?&amp;nbsp; I can (hopefully) give more detailed advice upon seeing this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80056?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:32:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b385358-643e-4e00-a363-49b3223663e2</guid><dc:creator>AllenP</dc:creator><description>&lt;p&gt;Thanks Mike.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How do I load the query results into a local variable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80055?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:15:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c728cf3-1085-4128-8924-98ff9d537f6f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I believe you&amp;#39;ll need to load the query results into a local variable first.&amp;nbsp; Here when you&amp;#39;re doing your &amp;quot;showWhen&amp;quot; check, I don&amp;#39;t believe it&amp;#39;s actually looking at the resulting data value (much less for a specific row, which in your case will always be row 1).&amp;nbsp; After the data is in the local variable, you&amp;#39;d hardcode your &amp;quot;showWhen&amp;quot; to check that row, i.e.&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;showWhen: local!rowQueryResult[1].energy &amp;lt;&amp;gt; &amp;quot; &amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80054?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:10:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca485b1c-c271-4ae6-b35a-ac4da14ccc31</guid><dc:creator>AllenP</dc:creator><description>&lt;p&gt;It is being pulled from a SQL database into a RecordType.&lt;/p&gt;
&lt;p&gt;I have tried this with no luck.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1614888652612v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80053?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:05:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13a0b41b-382c-4768-95e3-9bf65942a82b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Gotcha.&amp;nbsp; For the show/hide columns, you can probably just have the &amp;quot;showWhen&amp;quot; of the individual a!gridColumn() calls check whether that property of the data row is blank?&amp;nbsp; This might depend on where you&amp;#39;re storing the data that&amp;#39;s used in the row, but this should be possible I&amp;#39;d think.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80052?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:03:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9c3c86b-c7bc-45b9-a8f8-01ee088c8f3a</guid><dc:creator>AllenP</dc:creator><description>&lt;p&gt;Yes, it will only ever have one row.&amp;nbsp; The &amp;quot;compactness&amp;quot; is exactly why.&amp;nbsp; I thought about just text boxes but just wouldn&amp;#39;t look as clean.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80051?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 20:01:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cad88d1e-8e29-4a20-9868-d3b96a2cafab</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;So is this grid intended to only ever have one row?&amp;nbsp; I guess I&amp;#39;m unclear why even use a grid at all, though i guess with that many columns it might offer you better &amp;quot;compactness&amp;quot;...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80049?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 19:57:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf3bae96-3d4f-4d47-a85f-fd828f434184</guid><dc:creator>AllenP</dc:creator><description>&lt;p&gt;Yes, there was. Thank you&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1614887850664v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hide read-only column hidden when cell value is null</title><link>https://community.appian.com/thread/80048?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 19:56:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84005934-e30e-48ef-a80e-399b4a5db7e1</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Was there supposed to be a picture attachment with this?&amp;nbsp; If so, I don&amp;#39;t see anything -- just in case you want to re-try that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>