<?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 implement custom fields to display in the gridField?</title><link>https://community.appian.com/discussions/f/user-interface/38101/how-to-implement-custom-fields-to-display-in-the-gridfield</link><description>I want to implement a user-defined feature that allows specific fields to be displayed and the order to be adjusted. 
 For example, I currently have 5 columns(column 1-5) in readonly grid, and the user can present 3 of them as needed and can adjust the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143428?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 05:06:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:034ccb3a-d9de-478a-bd7d-e8a4c01f204d</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;HI&amp;nbsp;&lt;a href="/members/yans8297"&gt;yans8297&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Use the below code it will help&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data:{
    a!map(requestID:1,refNum:&amp;quot;LP012&amp;quot;,subject:&amp;quot;Test1&amp;quot;,asset:&amp;quot;Laptop&amp;quot;),
    a!map(requestID:2,refNum:&amp;quot;TB-2344&amp;quot;,subject:&amp;quot;Test2&amp;quot;,asset:&amp;quot;Tablet&amp;quot;),
  },
  local!gridFields1:{&amp;quot;Request Id&amp;quot;,&amp;quot;Reference Number&amp;quot;,&amp;quot;Subject&amp;quot;,&amp;quot;Asset&amp;quot;},
  local!selectedData,
  {
    a!multipleDropdownField(
      choiceLabels: local!gridFields1,
      choiceValues: local!gridFields1,
      label: &amp;quot;Column Types&amp;quot;,
      placeholder: &amp;quot;--Select Columns--&amp;quot;,
      value: local!selectedData,
      saveInto: local!selectedData
      
    ),
    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;Request Id&amp;quot;,
          value: fv!row.requestID,
          showWhen: if(
            a!isNotNullOrEmpty(local!selectedData),
            if(
              contains(
                touniformstring(local!selectedData),
                touniformstring(local!gridFields1[1])
              ),
              true(),
              false()
            ),
            true()
          )

,
          align: &amp;quot;END&amp;quot;
        ),
        a!gridColumn(
          label: &amp;quot;Reference Number&amp;quot;,
          value: fv!row.refNum,
          showWhen: if(
            a!isNotNullOrEmpty(local!selectedData),
            if(
              contains(
                touniformstring(local!selectedData),
                touniformstring(local!gridFields1[2])
              ),
              true(),
              false()
            ),
            true()
          )
        ),
        a!gridColumn(
          label: &amp;quot;Subject&amp;quot;,
          value:fv!row.subject,
          showWhen: if(
            a!isNotNullOrEmpty(local!selectedData),
            if(
              contains(
                touniformstring(local!selectedData),
                touniformstring(local!gridFields1[3])
              ),
              true(),
              false()
            ),
            true()
          )
        ),
        a!gridColumn(
          label: &amp;quot;Asset&amp;quot;,
          value: fv!row.asset,
          align: &amp;quot;START&amp;quot;,
          showWhen: if(
            a!isNotNullOrEmpty(local!selectedData),
            if(
              contains(
                touniformstring(local!selectedData),
                touniformstring(local!gridFields1[4])
              ),
              true(),
              false()
            ),
            true()
          )
        )
      },
      validations: {}
    )
    
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143404?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 07:01:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe301174-7381-4a84-8cc1-4e935dbe5b45</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/yans8297"&gt;yans8297&lt;/a&gt;&amp;nbsp;,Check this out, maybe you will get the output you&amp;#39;re looking for. Based on the selected value, it will display the columns, or you can choose the logged-in user using function called&amp;nbsp;&lt;code&gt;a!isUserMemberOfGroup()&lt;/code&gt;.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733381793496v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143402?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 06:33:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:213ae783-80a4-4c67-aa3d-417b72f07881</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733380315741v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733380337622v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I am giving you an example, you can develop like that.&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!save : 2,
  {
  a!radioButtonField(
    label: &amp;quot;Is user ?&amp;quot;,
    choiceLabels: {&amp;quot;User&amp;quot;,&amp;quot;Admin&amp;quot;},
    choiceValues: {1,2},
    value: local!save,
    saveInto: local!save,
    choiceStyle: &amp;quot;CARDS&amp;quot;,
  ),
  a!gridField(
    label: &amp;quot;Read-only Grid&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    data: &amp;#39;recordType!{f55afdcb-53bf-4764-9d6b-79d1e1490735}PSB Details&amp;#39;,
    columns: {
      a!gridColumn(
        label: &amp;quot;Id&amp;quot;,
        sortField:  &amp;#39;recordType!{f55afdcb-53bf-4764-9d6b-79d1e1490735}PSB Details.fields.{c0258c07-713f-4c0f-8fed-f85fa4aaea65}id&amp;#39;,
        value: fv!row[ &amp;#39;recordType!{f55afdcb-53bf-4764-9d6b-79d1e1490735}PSB Details.fields.{c0258c07-713f-4c0f-8fed-f85fa4aaea65}id&amp;#39;],
        showWhen: local!save = 2
      ),
      a!gridColumn(
        label: &amp;quot;Name&amp;quot;,
        sortField:  &amp;#39;recordType!{f55afdcb-53bf-4764-9d6b-79d1e1490735}PSB Details.fields.{a9d0f67a-cba2-4fda-bc8f-3dc112496562}firstName&amp;#39;,
        value: fv!row[ &amp;#39;recordType!{f55afdcb-53bf-4764-9d6b-79d1e1490735}PSB Details.fields.{a9d0f67a-cba2-4fda-bc8f-3dc112496562}firstName&amp;#39;],
        align: &amp;quot;START&amp;quot;
      ),
    }
  )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143401?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 06:26:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0467c1e3-b31d-4c3a-8345-d8e8b673cef1</guid><dc:creator>yans8297</dc:creator><description>&lt;p&gt;Not for Dropdown. This is about the functionality of the gridField and gridColumn. For example, currently our list has the following fields.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733379951514v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But the list here may have a lot of fields, so users want to decide what fields to display and how to display them depending on their needs. For example, user want 3 columns and change the order, like below:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733379997096v5.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143399?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 06:15:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12b0cc37-222c-4e46-8466-8225af07a0e7</guid><dc:creator>yans8297</dc:creator><description>&lt;p&gt;Not for dropdown, &lt;span&gt;for example, we have a grid like below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733379017513v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But there may be too many columns in this list, so users want to decide for themselves what columns to display and how to display them.&amp;nbsp;&lt;span&gt;for example, user want to display 3 columns and change the order, like below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1733379161941v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m not sure if there&amp;#39;s any way to implement this, my original idea was that the user would through dropdown to select the desired column, and we showed it by show when condition, but that doesn&amp;#39;t solve the order problem, because neither dropdown nor checkbox has the ability to generate values in the order of selection.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143398?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:53:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:edb97b3c-9032-41ad-9dec-8ff5d3a75f0e</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;So you want the values of the columns in dropdown in the grid.&lt;/p&gt;
&lt;p&gt;Ex: [ID,STATUS,AGE] are grid headers in the grid Data you want the dropdown.&lt;/p&gt;
&lt;p&gt;Or all the grid headers in the dropdown&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143397?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:51:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfbfcc0f-51b0-4fce-bb88-ed4bdf0d299c</guid><dc:creator>yans8297</dc:creator><description>&lt;p&gt;&lt;span&gt;The user wants to display the column they want, for example, the current gridField displays the fields [ID, NAME, AGE, STATUS], but the user wants to display&amp;nbsp;&lt;/span&gt;&lt;span&gt;[ID, STATUS, AGE]&lt;/span&gt;&lt;span&gt;&amp;nbsp;through dropdown options or other ways.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143396?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:50:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2876694a-c495-49db-b495-3d99f6a4629d</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Can you elaborate the use case&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143395?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:39:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a6d1a22-6766-43bc-97b2-f53d18296875</guid><dc:creator>yans8297</dc:creator><description>&lt;p&gt;Yes, I can show the&amp;nbsp;&lt;span&gt;specific fields&lt;/span&gt;&amp;nbsp;by the user&amp;#39;s selected set and show when condition, but I don&amp;#39;t have an idea of the order. because:&lt;br /&gt;1. We can&amp;#39;t dynamically adjust the order of the gridcolumn, right?&lt;br /&gt;2. Our checkbox component can&amp;#39;t save the values according to the order I choose, and it can&amp;#39;t annotate the order, which makes it difficult for me to deal with the order.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143394?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:33:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb0aff54-5550-47f7-b8f6-fa5373fb12c8</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;1. For the specific fields what you want to show to the user have a show when condition for the gridfields .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143393?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:27:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ee5677c-883e-4413-b212-eb0d0e436477</guid><dc:creator>yans8297</dc:creator><description>&lt;p&gt;The user wants to display the column they want, for example, the current gridField displays the fields [ID, NAME, AGE, STATUS], but the user wants to display &lt;span&gt;[ID, STATUS, AGE]&lt;/span&gt; through dropdown options or other ways.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to implement custom fields to display in the gridField?</title><link>https://community.appian.com/thread/143392?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 05:18:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66e4936e-3e29-4c55-acd1-cbb7cee46107</guid><dc:creator>Prasanta Paul</dc:creator><description>&lt;p&gt;Can you please elaborate more?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>