<?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>User-Driven Grid Customization in Appian: How to Hide/Show Columns?</title><link>https://community.appian.com/discussions/f/process/30773/user-driven-grid-customization-in-appian-how-to-hide-show-columns</link><description>Hello everyone, 
 I&amp;#39;m currently working on an interface in Appian, and I&amp;#39;m looking to implement a record action that allows users to customize the displayed columns in a grid. Ideally, the user would be presented with a checklist containing the column</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: User-Driven Grid Customization in Appian: How to Hide/Show Columns?</title><link>https://community.appian.com/thread/122525?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2023 02:10:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a46fcd56-c2af-473d-a6d9-16c5a4e031c1</guid><dc:creator>eliceljoyf0873</dc:creator><description>&lt;p&gt;Thanks! I will try this out!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User-Driven Grid Customization in Appian: How to Hide/Show Columns?</title><link>https://community.appian.com/thread/122461?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 07:34:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09106a05-0651-4b84-b872-dadb9ffc9bdc</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;You can take reference from this code snippet&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    a!map(Id: 1, name: &amp;quot;aman&amp;quot;, age: 22),
    a!map(Id: 2, name: &amp;quot;aman2&amp;quot;, age: 23),
    a!map(Id: 3, name: &amp;quot;aman3&amp;quot;, age: 24)
  },
  local!allColumns:{ &amp;quot;Id&amp;quot;, &amp;quot;name&amp;quot;,&amp;quot;age&amp;quot; },
  local!selectedColumn: { &amp;quot;Id&amp;quot;, &amp;quot;name&amp;quot; },
  {
    a!multipleDropdownField(
      choiceLabels: local!allColumns,
      choiceValues: local!allColumns,
      label: &amp;quot;show columns&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      saveInto: {local!selectedColumn},
      value: local!selectedColumn,
      searchDisplay: &amp;quot;AUTO&amp;quot;,
      validations: {}
    ),
    a!gridField(
      label: &amp;quot;Read-only Grid&amp;quot;,
      labelPosition: &amp;quot;ABOVE&amp;quot;,
      data: local!data,
      columns: {
        a!gridColumn(
          label: &amp;quot;Id&amp;quot;,
          value: fv!row.Id,
          showWhen: contains(local!selectedColumn, &amp;quot;Id&amp;quot;)
        ),
        a!gridColumn(
          label: &amp;quot;name&amp;quot;,
          value: fv!row.name,
          showWhen: contains(local!selectedColumn, &amp;quot;name&amp;quot;)
        ),
        a!gridColumn(
          label: &amp;quot;age&amp;quot;,
          value: fv!row.age,
          showWhen: contains(local!selectedColumn, &amp;quot;age&amp;quot;)
        )
      },
      validations: {}
    )
  }
)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;result&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1701329528710v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;as You mentioned record action , I&amp;#39;m assuming&amp;nbsp; you want to store the selected columns in database so that user can see the selected columns even after refreshing the page then you have to store the value in database as per user and if You have multiple grids for multiple records then you can store the value user specific and grid specific for more powerful out come&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User-Driven Grid Customization in Appian: How to Hide/Show Columns?</title><link>https://community.appian.com/thread/122460?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2023 07:18:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6487484f-218e-4503-aa3c-fa7707db82cf</guid><dc:creator>Sri Ram Kaja</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/eliceljoyf0873"&gt;eliceljoyf0873&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I think this might work. Please create the grid with every column and add showWhen condition to every column. Now save the selected columns in a list and with those columns&amp;#39; names, all the showWhen conditions will comply and you will achieve the outcome.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>