<?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>Create a tab options using one of the column values in the datatbase table</title><link>https://community.appian.com/discussions/f/user-interface/28379/create-a-tab-options-using-one-of-the-column-values-in-the-datatbase-table</link><description>hello, 
 I am trying to implement tab with one of the column values in the table. 
 Ex. There is one column name -&amp;quot;years&amp;quot; and it has values like 2022, 2023, 2024. I want to create a tab with the option for each year i.e 2022,2023,2024 and it shows related</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Create a tab options using one of the column values in the datatbase table</title><link>https://community.appian.com/thread/111776?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 06:15:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08a9bdd4-aabc-4402-8a3d-d3132eb3e745</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What exactly do you mean with &amp;quot;tabs&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a tab options using one of the column values in the datatbase table</title><link>https://community.appian.com/thread/111771?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 03:29:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aff091ec-3a89-4833-b28d-a50c151a2618</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;you can create a read only grid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a tab options using one of the column values in the datatbase table</title><link>https://community.appian.com/thread/111768?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2023 21:13:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f86e161-0f86-47d5-b1bc-c886dff94ab3</guid><dc:creator>mohinip</dc:creator><description>&lt;p&gt;Thank you! I have one more question, I want to display table in my tabs? how can I do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a tab options using one of the column values in the datatbase table</title><link>https://community.appian.com/thread/111053?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 02:03:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca31fca9-4f02-4f8a-8e94-f0644290fc5b</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;you can take refrence from this code -&amp;gt;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1681437832153v1.png" /&gt;&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!datasubset: {
    /*your data*/
    a!map(id: 1, name: &amp;quot;Aman&amp;quot;, iq: - 1, dob: 2001),
    a!map(id: 2, name: &amp;quot;Shadman&amp;quot;, iq: 10, dob: 2002),
    a!map(id: 3, name: &amp;quot;Tarannum&amp;quot;, iq: 100, dob: 2001)
  },
  local!tabs: union(index(local!datasubset,&amp;quot;dob&amp;quot;,&amp;quot;&amp;quot;),index(local!datasubset,&amp;quot;dob&amp;quot;,&amp;quot;&amp;quot;)), /*tabs value from data/database, use union to avoid duplicates*/,
  local!selectedab,
  local!filteredData: if(
    a!isNotNullOrEmpty(local!selectedab),
    index(
      local!datasubset,
      wherecontains(
        local!selectedab,
        index(local!datasubset, &amp;quot;dob&amp;quot;, &amp;quot;&amp;quot;)
      )
    ),
    local!datasubset
  ),
  /*filtered data accoring to selected tab*/
  {
    /*tabs design  - you can use card in columns too */
    a!buttonArrayLayout(
      buttons: {
        a!forEach(
          items: local!tabs,
          expression: a!buttonWidget(
            label: fv!item,
            saveInto: a!save(local!selectedab, fv!item),
            style: if(
              and(
                a!isNotNullOrEmpty(local!selectedab),
                fv!item = local!selectedab
              ),
              &amp;quot;PRIMARY&amp;quot;,
              &amp;quot;NORMAL&amp;quot;
            )
          )
        ),
        a!buttonWidget(
          label: &amp;quot;clear&amp;quot;,
          style: &amp;quot;LINK&amp;quot;,
          saveInto: a!save(local!selectedab, null)
        )
      },
      align: &amp;quot;START&amp;quot;
    ),
    a!gridField(
      data: local!filteredData,
      columns: {
        a!gridColumn(label: &amp;quot;&amp;quot;, value: fv!row.id),
        a!gridColumn(label: &amp;quot;name&amp;quot;, value: fv!row.name),
        a!gridColumn(label: &amp;quot;Iq&amp;quot;, value: fv!row.iq),
        a!gridColumn(label: &amp;quot;Dob&amp;quot;, value: fv!row.dob)
      },
    
      rowHeader: 1
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create a tab options using one of the column values in the datatbase table</title><link>https://community.appian.com/thread/111048?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 20:30:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15b0a13f-1f78-4af5-a199-2520fe92b6e5</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Fetch the year in the list and loop in using forEach to display a button or link act as a tab and on click of the respective tab display the content.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>