<?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>displaying constant array values in grid columns</title><link>https://community.appian.com/discussions/f/general/11924/displaying-constant-array-values-in-grid-columns</link><description>I have a grid column which displays numbers ( from the view and then data subset ) . But I want to display texts correcsponding to these numbers 
 
 Currenly its displaying 
 
 {1 , 2 , 3 , 4 } 
 
 I want to display correspondingly if 1 then Root 1, 2</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: displaying constant array values in grid columns</title><link>https://community.appian.com/thread/52774?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 10:03:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:602f5482-33f7-4178-971d-467bfb82bd41</guid><dc:creator>Abhay Giri</dc:creator><description>Hi Ramanan,&lt;br /&gt;
&lt;br /&gt;
try the below code &lt;br /&gt;
&lt;br /&gt;
a!gridTextColumn(&lt;br /&gt;
       label:&amp;quot;Root Tier &amp;quot;,&lt;br /&gt;
       &lt;br /&gt;
       data: a!forEach(&lt;br /&gt;
         items: local!dataSubset.data,&lt;br /&gt;
       expression: &lt;br /&gt;
       concat(cons!ROOT_TIER,&amp;quot; &amp;quot;,fv!item.rootId)&lt;br /&gt;
     )&lt;br /&gt;
     )&lt;br /&gt;
&lt;br /&gt;
in your constant only store Root and it should not be array type. I hope this will help you.&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: displaying constant array values in grid columns</title><link>https://community.appian.com/thread/52737?ContentTypeID=1</link><pubDate>Sat, 17 Feb 2018 21:03:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a19ca37-92da-463d-8469-590fc3771173</guid><dc:creator>Justin Watts</dc:creator><description>Yes, this is an appropriate use case for apply() or a!forEach(). This SAIL recipe shows a few examples of manipulating data in grid columns in this way - &lt;a href="https://docs.appian.com/suite/help/17.4/recipe_show_calculated_columns_in_a_grid.html"&gt;docs.appian.com/.../recipe_show_calculated_columns_in_a_grid.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>