<?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>Cannot  save the selection (in a grid)</title><link>https://community.appian.com/discussions/f/user-interface/13609/cannot-save-the-selection-in-a-grid</link><description>Hi ..I have used a grid to display data from DB and i want to select a row from it .But I cannot save the selected ID in to my rule input. Could you please help me with the error in my code below:</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Cannot  save the selection (in a grid)</title><link>https://community.appian.com/thread/61795?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 12:23:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fba441b-634e-4440-8642-36ca148826e2</guid><dc:creator>mounikat</dc:creator><description>Thank you. Its working now.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot  save the selection (in a grid)</title><link>https://community.appian.com/thread/61794?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 11:26:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1017337-db4f-4d19-9faf-1c875f76d04c</guid><dc:creator>simples533</dc:creator><description>Hi Mounikat, &lt;br /&gt;
&lt;br /&gt;
Remove this code in your ColumnsLayout -&amp;gt; ColumnLayout(Invited Meetings, My Task), &lt;br /&gt;
&lt;br /&gt;
a!submitLink(&lt;br /&gt;
              saveInto: a!save()&lt;br /&gt;
            )&lt;br /&gt;
&lt;br /&gt;
From 2nd and 3rd ColumnLayout. I tried to remove it and it worked for me.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot  save the selection (in a grid)</title><link>https://community.appian.com/thread/61791?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 10:49:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f8689c4-9ff0-4e4b-b11f-9bf7f4d8c9b1</guid><dc:creator>Neha Dangi</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Try to define your paging info variable in local not  as ri(rule input variable) &lt;br /&gt;
and then try to save your selected value in ri (rule input variable) variable&lt;br /&gt;
it might work for you &lt;br /&gt;
Regards,&lt;br /&gt;
Neha Dangi&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot  save the selection (in a grid)</title><link>https://community.appian.com/thread/61788?ContentTypeID=1</link><pubDate>Mon, 22 Oct 2018 10:32:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:63d17735-c446-4c68-963b-59f626390bb7</guid><dc:creator>yogalakshmia962829</dc:creator><description>It is advised to use the local variables inside the load(). Can you please try, local!gridPagingInfo instead of ri!gridPagingInfo ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot  save the selection (in a grid)</title><link>https://community.appian.com/thread/61755?ContentTypeID=1</link><pubDate>Sat, 20 Oct 2018 19:54:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e3fb6f8-22c2-44ac-ac28-52a8bf76c806</guid><dc:creator>mounikat</dc:creator><description>Hi Mike,&lt;br /&gt;
I did use the grid selection type for the value parameter(ri!gridPagingInfo). But when i select the check box..the page is sort of getting reloaded and checkbox is automatically deselected.&lt;br /&gt;
&lt;br /&gt;
 value:ri!gridPagingInfo,&lt;br /&gt;
              saveInto: {&lt;br /&gt;
                ri!gridPagingInfo,&lt;br /&gt;
                a!save(&lt;br /&gt;
                  ri!selectedMeeting,index(ri!gridPagingInfo,&amp;quot;selected&amp;quot;,null)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot  save the selection (in a grid)</title><link>https://community.appian.com/thread/61754?ContentTypeID=1</link><pubDate>Sat, 20 Oct 2018 18:36:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26f56550-ee61-4ad2-96a4-7e90b96a801d</guid><dc:creator>Mike Lasutschinkow</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt; &lt;br /&gt;Is your &amp;quot;value&amp;quot; parameter for your grid of type pagingInfo? Using a value of type gridSelection will allow you to save your selection into the &amp;quot;selected&amp;quot; property of the gridSelection. You can then add a save to your grid&amp;#39;s saveInto to save gridSelection.selected into a rule input.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!gridField(
  value: ri!gridSelection,
  saveInto: {
    ri!gridSelection,
    a!save(
      ri!selectedItems,
      ri!gridSelection.selected
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>