<?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>Populate values  grid Layout</title><link>https://community.appian.com/discussions/f/new-to-appian/21070/populate-values-grid-layout</link><description>Hi All 
 I have the following selectable grid layout. Here my requirement is 
 I have a status field with two types status&amp;#39;s 
 1) Completed and 
 2) Not Completed 
 In a rule input I&amp;#39;m maintaining the status Field 
 Initially the status for all the grid</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Populate values  grid Layout</title><link>https://community.appian.com/thread/82130?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 15:49:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d9db945-45cf-4d44-a091-3d3290c60d89</guid><dc:creator>Vinita Jain</dc:creator><description>&lt;p&gt;Harris ,&lt;/p&gt;
&lt;p&gt;Here is a sample code of how you can achieve this.&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt;local!array:{id:1,status:&amp;quot;Not Completed&amp;quot;},&lt;br /&gt;local!selection,&lt;br /&gt; a!gridField(&lt;br /&gt; selectable: true,&lt;br /&gt; selectionValue: local!selection,&lt;br /&gt; selectionSaveInto: local!selection,&lt;br /&gt; label: &amp;quot;Read-only Grid&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; data: local!array,&lt;br /&gt; columns: {&lt;br /&gt; a!gridColumn(&lt;br /&gt; label:&amp;quot;id&amp;quot;,&lt;br /&gt; value:fv!row.id&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label:&amp;quot;Status&amp;quot;,&lt;br /&gt; value: if(contains(cast(101,local!selection),fv!identifier),&amp;quot;Completed&amp;quot;,&amp;quot;Not Completed&amp;quot;)&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate values  grid Layout</title><link>https://community.appian.com/thread/82115?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 13:03:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d464904-db19-4390-a286-d12cf86b89b5</guid><dc:creator>Harris</dc:creator><description>&lt;p&gt;Can you please brief me with some sample code.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate values  grid Layout</title><link>https://community.appian.com/thread/82108?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 10:56:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b107b75-727b-4b92-af50-48fb0d0acb99</guid><dc:creator>Vinita Jain</dc:creator><description>&lt;p&gt;Hi Harris,&lt;/p&gt;
&lt;p&gt;The best way to do this is via local variables. Based on the selection the indexes of those selected values will be saved in the local variables and you can run if else condition on that Status column to manipulate or change your status.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vinita&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate values  grid Layout</title><link>https://community.appian.com/thread/82102?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 08:59:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b5ab733-7a2e-49c9-9212-21616dc90f8b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What did you try? Did it work? What did not work?&lt;/p&gt;
&lt;p&gt;My approach would be like&lt;/p&gt;
&lt;p&gt;Have a local variable storing selected rows, then for each cell, check whether the row is in that local and either show one text or the other.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.1/recipe-show-calculated-columns-in-a-grid.html"&gt;docs.appian.com/.../recipe-show-calculated-columns-in-a-grid.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>