<?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 display files in a grid with details?</title><link>https://community.appian.com/discussions/f/user-interface/28072/how-to-display-files-in-a-grid-with-details</link><description>Hi, 
 I found a code that explain how to display files in a grid, but my problem is that I can&amp;#39;t create new columns with more information, for example the Description of the file. Please, can you give an advice? 
 This is my currect code. Thanks a lot</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109341?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:41:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf80dbed-1b70-4cc6-bf61-f4681e8b5d0f</guid><dc:creator>ravis</dc:creator><description>&lt;p&gt;Hi ,&lt;br /&gt;Please also put valid folder ids, you should have privilege to the targeted folders.&lt;br /&gt;Thank You.&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1678794136545v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109339?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:35:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:efda9896-9670-4ddb-83b6-23b100cdeb27</guid><dc:creator>ravis</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;To remove this error, you have to wrap up the content of the&amp;nbsp;gridRowLayout() into brackets (&amp;quot;{}&amp;quot;).&lt;br /&gt;Thank You.&lt;br /&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1678793780504v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109336?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:28:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f3a7fb5-48da-4df0-a7ba-6d1d26ef96b3</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you would need another forEach in your line 92 if I am right. because you are already doing it for the gridRowLayout. But are you trying to show multiple details in a single row?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109335?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:27:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9e9218c-31d2-4261-a663-2d626a5b8b86</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;&lt;span&gt;It&amp;#39;s because you are not passing gridRowLayout contents in an array&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109334?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:20:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:278b8cff-ce68-442a-97c4-f38aa8bf4e02</guid><dc:creator>Jos&amp;#233; Manuel Ojeda</dc:creator><description>&lt;p&gt;This is my code with the Description column and I recieve an error message:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
            local!data: {
              {
                id: 1,
                folderId: 4768/* Folder ids*/

              },
              {
                id: 2,
                folderId: 4947/* Folder ids*/

              }
            },
            a!gridLayout(
              label: &amp;quot;Documents&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              headerCells: {
                a!gridLayoutHeaderCell(
                  label: &amp;quot;Name&amp;quot;
                ),
                a!gridLayoutHeaderCell(
                  label: &amp;quot;Description&amp;quot;
                )
              },
              columnConfigs: {},
              rows: {
                a!forEach(
                  items: local!data,
                  expression: a!gridRowLayout(
                    id: fv!index,
                    contents: 
                    a!richTextDisplayField(
                      value: a!forEach(
                        items: folder(
                          index(
                            fv!item,
                            &amp;quot;folderId&amp;quot;,
                            {}
                          ),
                          &amp;quot;documentChildren&amp;quot;
                        ),/*Getting documents from folder*/
                        expression: {
                          a!richTextItem(
                            text: document(
                              fv!item,
                              &amp;quot;name&amp;quot;
                            ),
                            link: a!documentDownloadLink(
                              document: fv!item
                            )
                          ),
                          a!richTextItem(
                            text: char(10),
                            showWhen: not(
                              fv!isLast
                            )
                          )
                        }
                      )
                    ),
                    a!richTextDisplayField(
                      value: a!forEach(
                        items: folder(
                          index(
                            fv!item,
                            &amp;quot;folderId&amp;quot;,
                            {}
                          ),
                          &amp;quot;documentChildren&amp;quot;
                        ),/*Getting documents from folder*/
                        expression: {
                          a!richTextItem(
                            text: document(
                              fv!item,
                              &amp;quot;description&amp;quot;
                            )
                          ),
                          a!richTextItem(
                            text: char(10),
                            showWhen: not(
                              fv!isLast
                            )
                          )
                        }
                      )
                    )
                  )
                )
              },
              selectionSaveInto: {},
              validations: {},
              shadeAlternateRows: true
            )
          )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109333?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:19:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:caed70e6-b6ec-4166-ab82-71eeaedb355b</guid><dc:creator>Jos&amp;#233; Manuel Ojeda</dc:creator><description>&lt;p&gt;When I write a new a!gridLayoutHeaderCell and I map&amp;nbsp;a!richTextDisplayField inside the content of my&amp;nbsp;a!gridRowLayout I recieve this error:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
            local!data: {
              {
                id: 1,
                folderId: 4768/* Folder ids*/

              },
              {
                id: 2,
                folderId: 4947/* Folder ids*/

              }
            },
            a!gridLayout(
              label: &amp;quot;Documents&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              headerCells: {
                a!gridLayoutHeaderCell(
                  label: &amp;quot;Name&amp;quot;
                ),
                a!gridLayoutHeaderCell(
                  label: &amp;quot;Description&amp;quot;
                )
              },
              columnConfigs: {},
              rows: {
                a!forEach(
                  items: local!data,
                  expression: a!gridRowLayout(
                    id: fv!index,
                    contents: 
                    a!richTextDisplayField(
                      value: a!forEach(
                        items: folder(
                          index(
                            fv!item,
                            &amp;quot;folderId&amp;quot;,
                            {}
                          ),
                          &amp;quot;documentChildren&amp;quot;
                        ),/*Getting documents from folder*/
                        expression: {
                          a!richTextItem(
                            text: document(
                              fv!item,
                              &amp;quot;name&amp;quot;
                            ),
                            link: a!documentDownloadLink(
                              document: fv!item
                            )
                          ),
                          a!richTextItem(
                            text: char(10),
                            showWhen: not(
                              fv!isLast
                            )
                          )
                        }
                      )
                    ),
                    a!richTextDisplayField(
                      value: a!forEach(
                        items: folder(
                          index(
                            fv!item,
                            &amp;quot;folderId&amp;quot;,
                            {}
                          ),
                          &amp;quot;documentChildren&amp;quot;
                        ),/*Getting documents from folder*/
                        expression: {
                          a!richTextItem(
                            text: document(
                              fv!item,
                              &amp;quot;description&amp;quot;
                            )
                          ),
                          a!richTextItem(
                            text: char(10),
                            showWhen: not(
                              fv!isLast
                            )
                          )
                        }
                      )
                    )
                  )
                )
              },
              selectionSaveInto: {},
              validations: {},
              shadeAlternateRows: true
            )
          )&lt;/pre&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/Error-Message.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109332?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:14:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eae947ae-4bea-4dac-becd-7fbd06b44cbf</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;The problem here is that you will need to again query all the documents in other column and then use document() function on it.&amp;nbsp;&lt;br /&gt;You don&amp;#39;t have those documents as part of your data subset. So either you add it in your data or you query the folder again to get a list of documents.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109331?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:12:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97a7aa36-1fb7-40e2-8f0d-3311a48ac6dd</guid><dc:creator>Jos&amp;#233; Manuel Ojeda</dc:creator><description>&lt;p&gt;Thanks! I change it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109330?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:10:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c4122975-aef6-4bc9-9fbc-b015470b6695</guid><dc:creator>Mallepu Prashanth </dc:creator><description>&lt;p&gt;You can use&amp;nbsp;document() where it can show the Description of the Document, that you can display in the required column.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109328?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 10:55:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81676974-1493-42e6-8c3c-5f2890637083</guid><dc:creator>ujjwalr0002</dc:creator><description>[quote userid="102689" url="~/discussions/f/user-interface/28072/how-to-display-files-in-a-grid-with-details"]but my problem is that I can&amp;#39;t create new columns with more information[/quote]
&lt;p&gt;Can you please elaborate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109322?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 10:32:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d295fa0-8dde-4ed7-bb41-419916719e70</guid><dc:creator>Mallepu Prashanth </dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/josemanuelo0002"&gt;Jos&amp;eacute; Manuel Ojeda&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you are displaying data in grid, you can add new columns and you can map the document description for each doc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display files in a grid with details?</title><link>https://community.appian.com/thread/109321?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 10:28:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eebb84ca-4729-4735-87f0-904ddc42381a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Just add more fields to the contents parameter of your gridRowLayout() like you would do with any other grid.&lt;/p&gt;
&lt;p&gt;And next time, please ...&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1678789782077v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>