<?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>Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/discussions/f/user-interface/34645/display-members-of-selected-groups-in-grid-columns</link><description>When selecting one or more groups, I want to display the members of those selected groups in a grid column. 
 Thank you!! 
 .</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133187?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:45:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dbb6fc5-bdca-4ca6-8572-20da6ad4374a</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;Thank you very much for clarifying the doubt.&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f60a.svg" title="Blush"&gt;&amp;#x1f60a;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133183?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:37:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e96c1e2-5bf0-463a-acc4-4b09e95ee63b</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Yes , you can do that. &lt;strong&gt;Grid is there Inside columnslayout&lt;/strong&gt; ,you can write selection for grid and trigger a process to remove members or you can use &lt;strong&gt;a!removeGroupMembers()&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133181?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:33:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3570e98-fd1c-4818-92b5-7ce72c7f1c81</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;Thanks that&amp;#39; what I was trying but with grid eventually it also helps me understand. I understood it&amp;#39;s not a better approach.&amp;nbsp;Is it possible for us to add or remove members from the group in columns layout?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133180?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:07:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd3ed35c-eb8f-4300-a0f0-29eafd3ea48e</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selectedGroup: ri!initialGroup,
  local!distinctUsers: if(
    a!isNullOrEmpty(local!selectedGroup),
    &amp;quot;Please select a group&amp;quot;,
    a!flatten(
      a!forEach(
        items: local!selectedGroup,
        expression:a!localVariables(
          local!group:fv!item,
          a!forEach(
          items: getdistinctusers({fv!item}),
          expression: a!map(id: fv!index, Group:local!group,Members: fv!item )
        ))
      )
    )
  ),
  local!groupName: a!forEach(
    items: local!selectedGroup,
    expression: getgroupnames(fv!item)
  ),
  local!pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 10),
  {
    a!sectionLayout(
      label: &amp;quot;User &amp;amp; Group Management&amp;quot;,
      contents: {
        a!pickerFieldGroups(
          label: &amp;quot;Pick Groups&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          maxSelections: 5,
          value: ri!initialGroup,
          saveInto: ri!initialGroup,
          
        )
      }
    ),
    a!sectionLayout(
      label: &amp;quot;Group members&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: a!forEach(
            items: local!selectedGroup,
            expression: a!columnLayout(
              a!gridField(
                label: &amp;quot;&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                data: index(
                  local!distinctUsers,
                  wherecontains(
                    touniformstring(fv!item),
                    touniformstring(local!distinctUsers.Group)
                  )
                ),
                columns: a!gridColumn(
                  label: group(
                    groupId: togroup(fv!item),
                    property: &amp;quot;groupName&amp;quot;
                  ),
                  value: fv!row.Members
                ),
                pagingSaveInto: local!pagingInfo
              )
            )
          )
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not exactly what you looking for but i did few changes to your code (It can be modified to fit for better practices). I used Columns layout have a look into it. FYI: It&amp;#39;s not the better approach&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133178?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 11:20:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f09082cc-719a-49c8-8ee9-c0f4fd17dd65</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;Alright Thanks&lt;span style="background-color:#eeeeee;"&gt;!!&lt;/span&gt;&amp;nbsp;Then I will try any another way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133175?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 11:12:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb7ed771-ffac-4efd-a5a3-0c0f65812ded</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;It is not a very common use case I would say because Appian doesn&amp;#39;t support list of list. Hence, it you try to build a list of list where the outer list signifies groups and inner signifies members, it is bound to fail. And even if you use dicitonaries, you will have to use editable grid.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133171?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 11:00:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1affee14-7168-4121-9ea2-f08cce81d6d1</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;As part of task. Where I have to use grid to display the members of all the selected group in columns.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133170?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:57:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:462e22a1-5ef8-43b8-ad97-94a725a56114</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;So can you suggest me correct approach, where&amp;nbsp;&lt;span&gt;display the members of those selected groups?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133168?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:51:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:072b2bdb-d2fa-4dbf-968f-72f3f38e704e</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;a href="/members/priyanshub3347"&gt;Priyanshu Bhavsar&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;WHat is your usecase? Why do you want to display the members of all the selected group, in a single grid, in various columns?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133166?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:27:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0082848e-e547-41bc-be0c-4f68aa9de0b3</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;I think your approach is wrong. Grids are used to show set of data in tabular form. Where as your data (in your code) it&amp;#39;s more like a tree or hierarchy&amp;nbsp; .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133163?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:16:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3172e742-cef6-4782-93ce-7645b23d2932</guid><dc:creator>Priyanshu Bhavsar</dc:creator><description>&lt;p&gt;I am stuck at displaying the group of members in grid. How should I do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display Members of Selected Groups in Grid Columns</title><link>https://community.appian.com/thread/133162?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:13:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03b06ccd-8732-4f73-a574-c4fc93e83db8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you have a specific question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>