<?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>Pagination in todatasubset</title><link>https://community.appian.com/discussions/f/data/35546/pagination-in-todatasubset</link><description>Hi Champ, 
 I have a map variable and the same is used in the table. So I can see it was coded as todatasubset to the map variable with a local defined pagination variable. It&amp;#39;s working fine if the map is having less no of rows then pagination ;but getting</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138759?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 09:09:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a053fcfa-7fd5-4169-a1c9-a4db59cfaed4</guid><dc:creator>rakshitha0003</dc:creator><description>&lt;p&gt;&amp;nbsp; Looks like in the above snippet use case is to get data and show on the grid if that is case in the query entity or record entity it is suggested to use fv!paginginfo so that records will be feteched accordingly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138712?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 16:53:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8db8e03e-6316-4256-8a92-d6cf0fa8c920</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You could try updating just the identifiers parameter of the datasubset with the identifiers for the current page via a!update().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138648?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 07:45:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45f4cb39-4401-415b-adfd-0a6a33b0da26</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;hi &amp;nbsp; could modify code for pagingSaveInto as &lt;span class="hljs-attr"&gt;pagingSaveInto&lt;/span&gt;: a!&lt;span class="hljs-title function_"&gt;save&lt;/span&gt;(local!pagingInfo, save!value), and rowHeader : 1 and check please just a try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138647?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 07:36:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:349548a5-0447-4b34-91e1-9ac039f9ca56</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;The reason is..the code is already written and there are other changes I need to do if I change that to todatasubset(), because I can&amp;#39;t set the identifiers by my own and it&amp;#39;s taking the id automatically like 1,2,3. That will make lot of code change again. So I was thinking of a minimal code change but no major testing needed.Hope that&amp;nbsp;makes sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138614?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:52:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97171f98-6e32-47f6-982d-29967b99070f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;it seems like you&amp;#39;re doing a lot of work to manually recreate the output you&amp;#39;d get automatically just from calling todatasubset() on the original data set and paging info.&amp;nbsp; I guess I&amp;#39;m unclear why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138613?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:35:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62151a12-6308-4f95-9103-7c2ece4d4f09</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;Now I am doing something as below and it&amp;#39;s working now&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1721835261275v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The change is in data and indentifier parameter in a!datasubset()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138612?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:16:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50920974-54cd-4d6b-9c1a-17590588b455</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="110357" url="~/discussions/f/data/35546/pagination-in-todatasubset/138611"]Is there any easy way to get an range in array [/quote]
&lt;p&gt;again - todatasubset() does this for you.&amp;nbsp; a!dataSubset() does not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138611?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:15:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09e94b8b-ff73-4ac4-8cb4-9bc245040b14</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;Is there any easy way to get an range in array in appian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138610?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:15:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3789d20f-ced7-4da7-983e-c8ed1942fe71</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;Is there any easier way to get a range in appian for an array?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138609?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:09:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b114e5b-a0f6-4f69-8d8f-3d57918e0abf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Well ... sure, just pick the first n items to put into the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138608?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:09:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c90c2210-b03e-47fd-8660-75adada86cfe</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;It&amp;#39;s vice-versa..actually ..batch size is 10 ; but the total data is 12&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138607?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:08:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c58875cb-29ca-4b80-912d-3aa58a348c86</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;I can but the code already written earlier..and if I change that..lot of other changes needed as&amp;nbsp;with todatasubset() , I am unable to play with the identifiers and it&amp;#39;s taking like 1,2,3 automatically instead of real primaryley or the the id that I need..becaused based on the selected row many other functionalities already being designed..So thinking is there any way to do with current coding only by using a!datasubset()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138606?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:05:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5e361bf-6a31-4028-9c5d-17f2f3d30f3a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Use todatasubset().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138605?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:03:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4bdf75b9-f005-4568-95ec-1b7aaa8eb66f</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Your batchsize is greater than the number of rows that are available. Lets say you have 10 rows in the 1st page you are trying to fetch another 10 i.e 11-20 rows which are not available in the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138604?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:03:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:356904b5-469b-412e-9f6f-9763bee48750</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;As I am having pagination in my grid..how can I make it&amp;nbsp;data to be changed dynamically based on pagination?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138603?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 15:01:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59b8f93a-8f57-4413-9b3f-baab067c797f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;When creating a data subset using a!datasubset(), you have to make sure that the number of items in &amp;quot;data&amp;quot; matches the batchsize parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138602?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 14:45:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b4d61ca-5231-47c8-8ebf-185e08f9789c</guid><dc:creator>ghanashyam905071</dc:creator><description>&lt;p&gt;Please find the error screenshot along with the code snippet&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1721832262913v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I just put some portion of the code needed to debug this&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!paginInfo:a!pagingInfo(&lt;br /&gt; startindex: 1,&lt;br /&gt; batchSize: 10&lt;br /&gt; ),&lt;br /&gt; local!mapDataSubset: a!dataSubset(&lt;br /&gt; startIndex:local!paginInfo.startIndex,&lt;br /&gt; batchSize:local!paginInfo.batchSize,&lt;br /&gt; totalCount:count(index(ri!map,&amp;quot;abc&amp;quot;,{})),&lt;br /&gt; sort:a!sortInfo(&lt;br /&gt; field:&amp;quot;abc&amp;quot;,&lt;br /&gt; ascending:true&lt;br /&gt; ),&lt;br /&gt; data:ri!map,&lt;br /&gt; identifiers:index(ri!map,&amp;quot;abc&amp;quot;,{})&lt;br /&gt; ),&lt;br /&gt; a!gridField(&lt;br /&gt; label: &amp;quot;label&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; data: local!mapDataSubset,&lt;br /&gt; pagingSaveInto:local!paginInfo&lt;br /&gt; &lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138600?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 14:20:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:840dd591-9d20-4fe3-840d-038263827eb7</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Please share the code snippet of what you have configured and the error box screenshot if possible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pagination in todatasubset</title><link>https://community.appian.com/thread/138598?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 13:43:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2955ba8-d98f-49aa-b0ed-9ec4b2d3a368</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not fully understand. Can you share some code snippets explaining what you are doing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>