<?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>Selectables in read-only grid</title><link>https://community.appian.com/discussions/f/user-interface/21404/selectables-in-read-only-grid</link><description>Hi All, 
 I am using selectables in read-only grid, based on the selected row I need to show a value in a particular column. In editable grid, we can configure the readonly as not(contains(ri!selectionList,fv!index)). But how to check whether the current</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83709?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 07:04:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d84b3722-9d82-4410-bb6d-86408c47d525</guid><dc:creator>Saahil Mulla</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for clearing this. &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: Selectables in read-only grid</title><link>https://community.appian.com/thread/83542?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 04:11:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27185ca5-c41e-4bc2-8c38-c995af74299a</guid><dc:creator>dastagirid756</dc:creator><description>&lt;p&gt;I hope following code fragments helps you in saving code fragments.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*Local variable declaration*/
...
local!selectedMappingId: tointeger({}),
...

/*To save a selected row id in the readonly grid*/
...
          selectionValue: local!selectedMappingId,
          selectionSaveInto: {
            a!save(
              local!selectedMappingId,
              save!value
            )
          }
...

/*To save the complete selected row and selected row id*/
...
          selectionValue: local!selectedMappingId,
          selectionSaveInto: {
            a!save(
              local!selectedRow,
                fv!selectedRows
            )
          }

...

/*To check whether the id is in the selected list. The usage of this varies on  your scenario */
...
wherecontains(sav!value,local!selectedMappingId)
...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83540?ContentTypeID=1</link><pubDate>Sun, 11 Jul 2021 10:14:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fdb4bde3-016a-4124-a690-0cfd50516669</guid><dc:creator>Saahil Mulla</dc:creator><description>&lt;p&gt;Yes, got that. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83539?ContentTypeID=1</link><pubDate>Sun, 11 Jul 2021 09:20:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0de70532-753e-440e-9122-fd32cd1d7370</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;ShowWhen will show/hide the whole column but not individual fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83537?ContentTypeID=1</link><pubDate>Sun, 11 Jul 2021 07:25:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b2f5c25-9a79-493a-9235-3a845e20cb1b</guid><dc:creator>Saahil Mulla</dc:creator><description>&lt;p&gt;Hi Selva,&lt;/p&gt;
&lt;p&gt;Thanks, it&amp;#39;s working &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: Selectables in read-only grid</title><link>https://community.appian.com/thread/83536?ContentTypeID=1</link><pubDate>Sun, 11 Jul 2021 07:11:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73694a89-0ade-4cab-910d-7b7726a283c0</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/saahilm0001"&gt;Saahil Mulla&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;You should be applying the condition in the &amp;#39;&lt;strong&gt;value&lt;/strong&gt;&amp;#39; parameter, not in the &amp;#39;&lt;strong&gt;showWhen&lt;/strong&gt;&amp;#39; parameter to show value based on the selection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridColumn(
  label: &amp;quot;DOA&amp;quot;,
  sortField: &amp;quot;DOA&amp;quot;,
  value: if(
    contains(ri!selectionList, fv!row.PRN),
    fv!row.DOA,
    &amp;quot;Hidden&amp;quot;   /*Instruction text as per your preference*/
  ),
  align: &amp;quot;END&amp;quot;
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The &amp;#39;showWhen&amp;#39; part can be configured based on the selection if needed for your requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83535?ContentTypeID=1</link><pubDate>Sun, 11 Jul 2021 06:27:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55cfe703-3deb-48d3-bc55-e8e7401745eb</guid><dc:creator>Saahil Mulla</dc:creator><description>&lt;p&gt;a!gridColumn(&lt;br /&gt; label: &amp;quot;DOA&amp;quot;,&lt;br /&gt; sortField: &amp;quot;DOA&amp;quot;,&lt;br /&gt; value: fv!row.DOA,&lt;br /&gt; showWhen: /*fv!row does not have scope here */ ,&lt;br /&gt; align: &amp;quot;END&amp;quot;&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the column that needs to be displayed for the selected row. But under showWhen fv!row cannot be used.&lt;/p&gt;
&lt;p&gt;the primary key is PRN, fv!row.PRN&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83534?ContentTypeID=1</link><pubDate>Sat, 10 Jul 2021 18:18:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41e64d88-f074-499b-aec4-2b3625854973</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Would need to see at least some code snippets. What is the field name of your primary key? That must be used in contains().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83533?ContentTypeID=1</link><pubDate>Sat, 10 Jul 2021 16:12:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f302971-7ae2-4a21-9a66-c51fae8b380e</guid><dc:creator>Saahil Mulla</dc:creator><description>&lt;p&gt;Hi Stefan, actually in a paging grid, for data as a data subset, the data subset identifier gets stored as the selection value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a date column, which is initially not visible. But as soon as a row is selected the entire date column becomes visible and not only the specific row date. Any idea?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selectables in read-only grid</title><link>https://community.appian.com/thread/83532?ContentTypeID=1</link><pubDate>Sat, 10 Jul 2021 15:18:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23d2d581-d318-48be-bce9-b15a065b5f62</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Documentation says that the grid stores the ID.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/read-only-grid-configuration.html#selection"&gt;https://docs.appian.com/suite/help/21.2/read-only-grid-configuration.html#selection&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Something like this should do it. Copied you snippet.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;not(contains(ri!selectionList,fv!row.id))&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>