<?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>Grid related</title><link>https://community.appian.com/discussions/f/new-to-appian/24195/grid-related</link><description>In the given exercise https://docs.appian.com/suite/help/22.1/Grid_Tutorial.html 
 When below expression is used 
 
 Results in 
 
 When I tried the same no data is fetched</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Grid related</title><link>https://community.appian.com/thread/93411?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 17:07:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1fe67075-81bf-4362-b200-4d466acd0981</guid><dc:creator>reshman0003</dc:creator><description>&lt;p&gt;Thank You&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid related</title><link>https://community.appian.com/thread/93408?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 14:39:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80c8d197-e965-4806-aaf2-41869a7666fe</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;The other posters are correct - in particular you are missing this additional logic in your selectionSaveInto:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;selectionSaveInto: {
  local!selection,
  a!save(local!selectedEmployees, append(local!selectedEmployees, fv!selectedRows)),
  a!save(local!selectedEmployees, difference(local!selectedEmployees, fv!deselectedRows))
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid related</title><link>https://community.appian.com/thread/93364?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 16:38:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59f9ead6-0e56-4bb2-876e-046428274e3b</guid><dc:creator>Prin18</dc:creator><description>&lt;p&gt;Refer this document &amp;quot;Grid with Selection Pattern&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.1/grid-with-selection-pattern.html"&gt;https://docs.appian.com/suite/help/22.1/grid-with-selection-pattern.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid related</title><link>https://community.appian.com/thread/93362?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 16:19:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ceebe35-2c1c-4db0-9ef2-38d80dba0887</guid><dc:creator>reshman0003</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1649347988778v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I have already added&amp;nbsp;&lt;span&gt;selectionValue and selectionSaveInto in the gridfield. But how to store these &amp;quot;selected&amp;quot; vales in the &amp;quot;selectedEmployees&amp;quot; varible inorder to display under Selection Employees&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Below is the code&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a!localVariables(&lt;br /&gt; local!selection,&lt;br /&gt; local!selectedEmployees,&lt;br /&gt; {&lt;br /&gt; a!columnsLayout(&lt;br /&gt; columns: {&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!gridField(&lt;br /&gt; label: &amp;quot;Read-only Grid&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; data: a!queryEntity(&lt;br /&gt; entity: cons!AT_EMPLOYEE_ENTITY1,&lt;br /&gt; query: a!query(&lt;br /&gt; selection: a!querySelection(&lt;br /&gt; columns: {&lt;br /&gt; a!queryColumn(&lt;br /&gt; field: &amp;quot;id&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!queryColumn(&lt;br /&gt; field: &amp;quot;firstName&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!queryColumn(&lt;br /&gt; field: &amp;quot;lastName&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!queryColumn(&lt;br /&gt; field: &amp;quot;department&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!queryColumn(&lt;br /&gt; field: &amp;quot;startDate&amp;quot;&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; pagingInfo: fv!pagingInfo&lt;br /&gt; ),&lt;br /&gt; fetchTotalCount: true&lt;br /&gt; ),&lt;br /&gt; columns: {&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;First Name&amp;quot;,&lt;br /&gt; sortField: &amp;quot;firstName&amp;quot;,&lt;br /&gt; value: fv!row.firstName&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Last Name&amp;quot;,&lt;br /&gt; sortField: &amp;quot;lastName&amp;quot;,&lt;br /&gt; value: fv!row.lastName&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Department&amp;quot;,&lt;br /&gt; sortField: &amp;quot;department&amp;quot;,&lt;br /&gt; value: a!richTextDisplayField(&lt;br /&gt; value: {&lt;br /&gt; a!richTextItem(&lt;br /&gt; text: {fv!row.department},&lt;br /&gt; color: if(fv!row.department=&amp;quot;Sales&amp;quot;,&amp;quot;SECONDARY&amp;quot;, null),&lt;br /&gt; style: {&lt;br /&gt; &amp;quot;EMPHASIS&amp;quot;&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Start Date&amp;quot;,&lt;br /&gt; sortField: &amp;quot;startDate&amp;quot;,&lt;br /&gt; value: fv!row.startDate,&lt;br /&gt; align: &amp;quot;END&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; pageSize: 5,&lt;br /&gt; initialSorts: {&lt;br /&gt; a!sortInfo(&lt;br /&gt; field: &amp;quot;lastName&amp;quot;,&lt;br /&gt; ascending: true&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; selectable: true,&lt;br /&gt; selectionValue: local!selection,&lt;br /&gt; selectionSaveInto: local!selection,&lt;br /&gt; validations: {}&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; width: &amp;quot;WIDE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!richTextDisplayField(&lt;br /&gt; label: &amp;quot;Selected Employees&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; value: a!forEach(&lt;br /&gt; items: local!selectedEmployees,&lt;br /&gt; expression: {a!richTextIcon(icon:&amp;quot;user-centric&amp;quot;),&lt;br /&gt; &amp;quot; &amp;quot;&amp;amp;fv!item.firstName&amp;amp;&amp;quot; &amp;quot;&amp;amp;fv!item.lastName&amp;amp;char(10)}&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt;})&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid related</title><link>https://community.appian.com/thread/93319?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 20:09:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf420d3b-9e1f-4ed3-93b4-cdc527f83ab4</guid><dc:creator>Danny Verb</dc:creator><description>&lt;p&gt;In your last screenshot, you&amp;#39;ll see that the variable &amp;#39;local!selectedEmployees&amp;#39; is null which is why no employees are showing up. This means that the selection in your grid is not populating that variable. Within a!gridField(), update the selectionValue and selectionSaveInto to populate the variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>