<?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 can I display the gridfield column with a link?</title><link>https://community.appian.com/discussions/f/user-interface/11955/how-can-i-display-the-gridfield-column-with-a-link</link><description>So, Ive tried creating a gridfield with a gridtextColumn that has a link 
 
 a!gridTextColumn( label: &amp;quot;Scanned Documents&amp;quot;, data: { a!forEach( items: index(local!attachments, &amp;quot;id&amp;quot;, {}), expression: { &amp;quot;Document #&amp;quot; &amp;amp; fv!item } ) }, 
 links: { 
 a!forEach</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I display the gridfield column with a link?</title><link>https://community.appian.com/thread/60583?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 20:07:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b20ac75-3b4d-4afa-9a2f-f865dda1b9cb</guid><dc:creator>noem0001</dc:creator><description>WOW, this also worked for me, thank you so much.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the gridfield column with a link?</title><link>https://community.appian.com/thread/52903?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 16:26:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:200bc1b5-3283-4ed3-abe3-51ccbb37c998</guid><dc:creator>legodfw</dc:creator><description>Taking out the brackets worked. Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the gridfield column with a link?</title><link>https://community.appian.com/thread/52891?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 06:27:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76dcb822-fb3e-4246-9bf9-9d1b57bf717a</guid><dc:creator>Abhay Giri</dc:creator><description>Hi ,&lt;br /&gt;
&lt;br /&gt;
Try this code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
      a!gridTextColumn(&lt;br /&gt;
        label: &amp;quot;Attachments&amp;quot;,&lt;br /&gt;
        data: a!forEach(&lt;br /&gt;
          items: index(&lt;br /&gt;
            local!attachments,&lt;br /&gt;
            &amp;quot;id&amp;quot;,&lt;br /&gt;
            null&lt;br /&gt;
          ),&lt;br /&gt;
          expression: fv!item&lt;br /&gt;
        ),&lt;br /&gt;
        links: a!forEach(&lt;br /&gt;
            items: index(&lt;br /&gt;
              local!attachments,&lt;br /&gt;
              &amp;quot;id&amp;quot;,&lt;br /&gt;
              null&lt;br /&gt;
            ),&lt;br /&gt;
            expression: a!safeLink(&lt;br /&gt;
              uri: concat(&lt;br /&gt;
              &amp;quot;&lt;a href="https://somedomain/view/doc?id=&amp;quot;,"&gt;somedomain/.../doc&lt;/a&gt;&lt;br /&gt;
              fv!item&lt;br /&gt;
    )&lt;br /&gt;
          )&lt;br /&gt;
        )&lt;br /&gt;
      )&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Abhay Giri&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I display the gridfield column with a link?</title><link>https://community.appian.com/thread/52885?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2018 00:26:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e9c3664-0afc-4834-ad20-ad256e9f484b</guid><dc:creator>gianninol</dc:creator><description>&lt;p&gt;The error message indicates that it is receiving a list of safe links where it is expecting a single safe link. a!forEach returns an array, but you&amp;#39;re also wrapping both the forEach and the expression it is iterating over in array brackets, creating a multi-dimensional array. So, when the grid looks at the first element of &amp;quot;links&amp;quot;, it gets a list of links. Try getting rid of both of those sets of array brackets I mentioned, and I think that will solve your problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>