<?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>Issue with Selection in the read-only grid</title><link>https://community.appian.com/discussions/f/general/34565/issue-with-selection-in-the-read-only-grid</link><description>Hi, 
 I have Selectable Read-only grid and when I select few rows and click on select button a review grid will appear on the next page with the selected rows. Now I have an EDIT button which takes me to the previous page to select/de-select the rows</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with Selection in the read-only grid</title><link>https://community.appian.com/thread/132556?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 06:20:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa292577-c357-4aea-bb50-5cc6d35c15cf</guid><dc:creator>venkatrea696188</dc:creator><description>[quote userid="139569" url="~/discussions/f/general/34565/issue-with-selection-in-the-read-only-grid"]The grid is a child interface and it is being called in the parent interface as below[/quote]
&lt;p&gt;We need more context of this interface it seems to me&amp;nbsp; your handling total data using rule inputs of it. I&amp;#39;m gonna suggest you to cross check on click of &lt;strong&gt;Edit button&amp;nbsp;&lt;/strong&gt; what is happening to&amp;nbsp;&lt;strong&gt;local!selectedRow&amp;nbsp;&lt;/strong&gt;this variable is prime factor for your error (Sorry, I can&amp;#39;t pinpoint it ).&amp;nbsp; I&amp;#39;m attaching a sample code of your scenario&amp;nbsp; have a look into it.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!Data: {
    a!map(
      id: 1,
      Name: &amp;quot;Suresh Raina&amp;quot;,
      Age: 38,
      Team: &amp;quot;CSK&amp;quot;
    ),
    a!map(id: 2, Name: &amp;quot;MS Dhoni&amp;quot;, Age: 42, Team: &amp;quot;CSK&amp;quot;),
    a!map(
      id: 3,
      Name: &amp;quot;Rohit Sharma&amp;quot;,
      Age: 38,
      Team: &amp;quot;MI&amp;quot;
    ),
    a!map(
      id: 4,
      Name: &amp;quot;Virat Kohli&amp;quot;,
      Age: 37,
      Team: &amp;quot;RCB&amp;quot;
    ),
    a!map(
      id: 5,
      Name: &amp;quot;Zaheer Khan&amp;quot;,
      Age: 44,
      Team: &amp;quot;DD&amp;quot;
    ),
    a!map(id: 6, Name: &amp;quot;Gambhir&amp;quot;, Age: 42, Team: &amp;quot;KKR&amp;quot;),
    a!map(id: 7, Name: &amp;quot;Sachin&amp;quot;, Age: 48, Team: &amp;quot;MI&amp;quot;),
    a!map(id: 8, Name: &amp;quot;Sehwag&amp;quot;, Age: 44, Team: &amp;quot;PKBS&amp;quot;)
  },
  local!Selected,
  local!selectionvalue,
  local!Page: 1,
  {
    a!cardLayout(
      contents: {
        a!gridField(
          label: &amp;quot;Read-only Grid&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          data: local!Data,
          columns: {
            a!gridColumn(
              label: &amp;quot;Name&amp;quot;,
              sortField: &amp;quot;Name&amp;quot;,
              value: fv!row.Name
            ),
            a!gridColumn(label: &amp;quot;Age&amp;quot;, value: fv!row.Age),
            a!gridColumn(label: &amp;quot;Created By&amp;quot;, value: fv!row.Team),
            
          },
          validations: {},
          selectable: true,
          selectionStyle: &amp;quot;CHECKBOX&amp;quot;,
          selectionValue: local!Selected,
          selectionSaveInto: {
            local!Selected,
            a!save(
              local!selectionvalue,
              append(local!selectionvalue, fv!selectedRows)
            ),
            a!save(
              local!selectionvalue,
              difference(local!selectionvalue, fv!deselectedRows)
            )
          },
          
        ),
        a!buttonArrayLayout(
          buttons: {
            a!buttonWidget(
              label: &amp;quot;Analyze&amp;quot;,
              saveInto: { a!save(local!Page, 2) },
              disabled: a!isNullOrEmpty(local!Selected)
            )
          }
        )
      },
      height: &amp;quot;AUTO&amp;quot;,
      style: &amp;quot;TRANSPARENT&amp;quot;,
      marginBelow: &amp;quot;STANDARD&amp;quot;,
      showWhen: local!Page = 1
    ),
    a!cardLayout(
      contents: {
        a!gridField(
          label: &amp;quot;Read-only Grid&amp;quot;,
          labelPosition: &amp;quot;ABOVE&amp;quot;,
          data: local!selectionvalue,
          columns: {
            a!gridColumn(
              label: &amp;quot;Name&amp;quot;,
              sortField: &amp;quot;Name&amp;quot;,
              value: fv!row.Name
            ),
            a!gridColumn(label: &amp;quot;Age&amp;quot;, value: fv!row.Age),
            a!gridColumn(label: &amp;quot;Created By&amp;quot;, value: fv!row.Team),
            
          },
          
        ),
        a!buttonArrayLayout(
          buttons: {
            a!buttonWidget(
              label: &amp;quot;Go home&amp;quot;,
              saveInto: { a!save(local!Page, 1) },
              
            )
          }
        )
      },
      height: &amp;quot;AUTO&amp;quot;,
      style: &amp;quot;TRANSPARENT&amp;quot;,
      marginBelow: &amp;quot;STANDARD&amp;quot;,
      showWhen: local!Page = 2
    ),
    
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Selection in the read-only grid</title><link>https://community.appian.com/thread/132548?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 06:04:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13c0f9fa-3d2f-4a8e-8fe4-e1c03eaa7ef6</guid><dc:creator>p2005</dc:creator><description>&lt;p&gt;&amp;nbsp; &lt;a href="/members/harshitb6843"&gt;Harshit Bumb (Appyzie)&lt;/a&gt;&amp;nbsp;&amp;nbsp;Attached the code above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Selection in the read-only grid</title><link>https://community.appian.com/thread/132546?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 05:52:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2d7e9cf-e198-4f22-8f09-8879a3e1adc7</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;As said by Venky, we need to see your code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You might be missing the mapping between your two interfaces or something.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with Selection in the read-only grid</title><link>https://community.appian.com/thread/132545?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 05:32:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d6a34f5-3535-41ec-8476-79fac51ff97a</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;Need to see your code ,You Sure you don&amp;#39;t have any &lt;strong&gt;refresh condition&lt;/strong&gt; or any &lt;strong&gt;extra save&lt;/strong&gt; which removes the value from the Selection variable&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>