<?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>Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/discussions/f/user-interface/13809/anybody-can-explain-use-of-a-paginginfo-function</link><description>s</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/thread/62742?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 11:35:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07c513bb-1306-472b-a2ce-45f64af4c3f8</guid><dc:creator>Aditya GIll</dc:creator><description>I can explain with an example, if I don&amp;#39;t pass SortInfo in for some of the cases I have found that some of the rows were not displaying in the grid and instead of this topaginginfo() will returning the correct data in grid. When I started the investigation when I found that we should have to pass the value for sort parameter of function a!pagingInfo( startIndex, batchSize, sort ).&lt;br /&gt;
&lt;br /&gt;
In that case what is happening, the sort is automatically changed by clicking on pagination and this is causing the improper display of data in grid. Basically  topaginginfo() sort the data automatically to increasing order of primary key. But that was not the case for a!pagingInfo(). I guess some performance factor is also there but I am enable to validate the same.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/thread/62740?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 10:18:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4fed1582-2871-4b11-82fb-280263c95a6b</guid><dc:creator>anjup136</dc:creator><description>Interesting. Any idea why we don&amp;#39;t have sort functionality in topaginginfo() ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/thread/62712?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 03:52:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2dfd81f1-6493-4a25-97cc-fcddcfa0de0e</guid><dc:creator>ravalik</dc:creator><description>HI tirumalar,&lt;br /&gt;
&lt;br /&gt;
a!paging Info() function contains 3 parameters start Index, batch Size, sort which is used to fetch the data and is used to display the records i.e(batch size). sort can be used by a!sortinfo()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example: your total Data set contains 500 items, but you only want to display 100 at a time. You set your paging info values to: startIndex:1, batchSize:100. &lt;br /&gt;
&lt;br /&gt;
You display your grid, if you display your datasubset in a paragraph field, you&amp;#39;ll see three important values:&lt;br /&gt;
datasubset.startIndex:1, datasubset.batchSize:100, datasubset.totalCount: 500,&lt;br /&gt;
&lt;br /&gt;
If you page your grid to the next one hundred and examine your values, you&amp;#39;ll see:&lt;br /&gt;
datasubset.startIndex:101, datasubset.batchSize:100, datasubset.totalCount:500&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/thread/62709?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 21:11:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ec60a00-c85c-4dcb-83d3-73adf4f6a648</guid><dc:creator>rohinip91</dc:creator><description>a!pagingInfo in general terms is used to define &lt;br /&gt;
1)From what index the data to be displayed--this is achieved by startIndex parameter&lt;br /&gt;
2) how many records to be displayed --this is achieved by batchSize parameter&lt;br /&gt;
3) what order/field the data to be displayed---this is achieved by sort parameter&lt;br /&gt;
&lt;br /&gt;
The return type of a!pagingInfo is PagingInfo&lt;br /&gt;
&lt;br /&gt;
For detail info , please refer to the below link&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.3/fnc_system_a_paginginfo.html"&gt;docs.appian.com/.../fnc_system_a_paginginfo.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/thread/62694?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 13:39:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:858d343f-09c3-4671-8081-e2570014b36d</guid><dc:creator>Mohan Paruchuri</dc:creator><description>PagingInfo for use with grids and record queries.&lt;br /&gt;
you can find more details in the below link&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.3/fnc_system_a_paginginfo.html"&gt;docs.appian.com/.../fnc_system_a_paginginfo.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Anybody can explain use of a!paginginfo() Function?</title><link>https://community.appian.com/thread/62685?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 08:58:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f75fc13d-e87d-4ae8-b110-69501466f59d</guid><dc:creator>Aditya GIll</dc:creator><description>Following is the basic syntax for a!pagingInfo(), this function is used the display/fetch the fixed batches (rows)  of data. This function basically have 3 mandatory parameter that are startIndex, batchSize and sort.    &lt;br /&gt;
&lt;br /&gt;
 startIndex (Integer):  Index of the array in which to start returning values for the subset. Valid values include those greater than zero.&lt;br /&gt;
&lt;br /&gt;
batchSize (Integer):  The number of items to return. Valid values include those greater than or equal to -1.&lt;br /&gt;
&lt;br /&gt;
sort (SortInfo Array): Valid values include null, an empty array of SortInfo, or an array of SortInfo where &amp;lt;SortInfo&amp;gt;.field is the name of a field on the input array elements or &amp;quot;dot&amp;quot; notation for a nested field.&lt;br /&gt;
a!pagingInfo( startIndex, batchSize, sort )&lt;br /&gt;
&lt;br /&gt;
Similar we have a topaginginfo() function which don&amp;#39;t allow to pull sorted data.&lt;br /&gt;
topaginginfo( startIndex, batchSize )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More info please visit the URL:&lt;br /&gt;
 &lt;a href="https://docs.appian.com/suite/help/18.3/fnc_system_a_paginginfo.html"&gt;docs.appian.com/.../fnc_system_a_paginginfo.html&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.3/fnc_scripting_topaginginfo.html"&gt;docs.appian.com/.../fnc_scripting_topaginginfo.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>