<?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>Index is getting refreshed after changing the page</title><link>https://community.appian.com/discussions/f/data/11961/index-is-getting-refreshed-after-changing-the-page</link><description>Hello All, 
 I&amp;#39;m getting issues while selecting the data from grid. The overall scenario is something like I have a grid showing 5 rows at a time. I&amp;#39;m storing selected values on one variable and some other information on another variable. The issue that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Index is getting refreshed after changing the page</title><link>https://community.appian.com/thread/53015?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 11:17:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e33ac5f-bbe6-4adc-ace0-5a042195c043</guid><dc:creator>viveku3486</dc:creator><description>Hello Shyam,&lt;br /&gt;
&lt;br /&gt;
Thanks for your suggestion. Your suggestion actually worked for me, The datasubset which I was calling from the Parent interface has pagingInfo appended to it and that is why it was refreshing the index everytime(As you mentioned). I just passed the whole datasubset without any pagingInfo and its now working fine&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Index is getting refreshed after changing the page</title><link>https://community.appian.com/thread/52955?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 15:15:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01b510d1-5459-4c6e-b97f-a61db88876fa</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;This is default behavior. Selection will be per grid but the ri!Datasubset&amp;nbsp;is per page. Meaning, when you switch&amp;nbsp;to next/previous page, Appian will query DB with the updated paginginfo (startindex of the next page and the batchsize get updated automatically), so the Datasubset will only have data for that page.&lt;/p&gt;
&lt;p&gt;So this&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;index(ri!Datasubset.data.c2,wherecontains(ri!selectedRows[fv!index],ri!datasubset.data.eid),{})&lt;/pre&gt;&amp;nbsp;will only has data for the current page&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t recommend but you can solve this by getting data from DB for selected identities instead of the datasubset. Basically you will be querying DB everytime a selection is made and this WILL degrade performance.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Index is getting refreshed after changing the page</title><link>https://community.appian.com/thread/52926?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 16:35:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32eabebb-cd21-4fb2-b38d-44438bbc1e9d</guid><dc:creator>Shyam Bommakanti</dc:creator><description>&lt;p&gt;Use the gridselection type to automatically save selection between pages. The selected value will be identifier of the datasubset&lt;br /&gt; Please review this recipe: &lt;a href="https://docs.appian.com/suite/help/17.4/recipe_select_rows_in_a_grid.html"&gt;docs.appian.com/.../recipe_select_rows_in_a_grid.html&lt;/a&gt;&lt;br /&gt; &lt;br /&gt; More info on Grid selection type: &lt;a href="https://docs.appian.com/suite/help/17.4/Grid_Selection_Component.html"&gt;docs.appian.com/.../Grid_Selection_Component.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>