<?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>Query regarding pagination in Interface</title><link>https://community.appian.com/discussions/f/user-interface/13843/query-regarding-pagination-in-interface</link><description>Hi, 
 I have a large number of records in database and I&amp;#39;m fetching that using queryEntity() function and showing it in a gridField(). I have given pagingInfo() detail in queryEntity() like 
 a!pagingInfo( startIndex: 1, batchSize: - 1) and in gridField</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Query regarding pagination in Interface</title><link>https://community.appian.com/thread/67397?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 06:48:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ef6a3ef-6d74-4665-b1f3-90facaf907d7</guid><dc:creator>jyotia</dc:creator><description>&lt;p&gt;Thanks, worked for me!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding pagination in Interface</title><link>https://community.appian.com/thread/62947?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 07:22:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:afffed25-9bb3-4d17-99e0-2833b1545e54</guid><dc:creator>Abhay Giri</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
The process which i provided that is correct but now it depends how you are implementing the logic. If you can share the code then it will be helpful to us understand your errors.&lt;br /&gt;
&lt;br /&gt;
abhay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding pagination in Interface</title><link>https://community.appian.com/thread/62945?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 06:46:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f962344c-fc65-43cf-80d5-885899ac217d</guid><dc:creator>sudip.das005</dc:creator><description>I have implemented the solution given by you and &lt;a href="/members/abhayg0001"&gt;Abhay Giri&lt;/a&gt; . But we have some filtering and searching options in the interface. After implementing the solution that things not working.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding pagination in Interface</title><link>https://community.appian.com/thread/62874?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 11:02:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cf7f7b9-4a21-4c58-abf4-fb6b95d1735f</guid><dc:creator>Yogesh Pavuluru</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;,&lt;br /&gt; &lt;br /&gt;In addition to Abhay Giri&amp;#39;s points, I would like to share a piece of code which may help you.&lt;br /&gt; &lt;br /&gt; load(&lt;br /&gt; local!pagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 10 /*Change it as per your requirement*/&lt;br /&gt; ),&lt;br /&gt; local!var1: rule!YourQueryEntityRule(&lt;br /&gt; pagingInfo: local!pagingInfo&lt;br /&gt; ),&lt;br /&gt; with(&lt;br /&gt; local!var2: local!var1.data,&lt;br /&gt; a!gridField(&lt;br /&gt; columns: a!gridTextColumn(&lt;br /&gt; label: &amp;quot;Id&amp;quot;,&lt;br /&gt; field: &amp;quot;fieldName&amp;quot;,&lt;br /&gt; data: local!var2.fieldName&lt;br /&gt; ),&lt;br /&gt; value: local!pagingInfo,&lt;br /&gt; totalCount: local!var1.totalCount,&lt;br /&gt; saveInto: {&lt;br /&gt; local!pagingInfo,&lt;br /&gt; a!save(&lt;br /&gt; local!var1,&lt;br /&gt; rule!YourQueryEntityRule(&lt;br /&gt; pagingInfo: local!pagingInfo&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query regarding pagination in Interface</title><link>https://community.appian.com/thread/62859?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 07:43:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d916151-f46a-4f8d-9709-2b53bce345a4</guid><dc:creator>Abhay Giri</dc:creator><description>Hi Sudipdas,&lt;br /&gt;
&lt;br /&gt;
It depends how you design you interface i.e. either you want to call the data from database or just bunch of data from database.&lt;br /&gt;
But it would be best practice to fetch of bunch of data from the database and again fetch batch of data from the database when user click on next button.&lt;br /&gt;
&lt;br /&gt;
to implement your requirement, you need two things : &lt;br /&gt;
&lt;br /&gt;
1- &amp;gt; queryentity : it will return you 50 records each time . It will have one rule input pagingInfo .&lt;br /&gt;
&lt;br /&gt;
2 - &amp;gt; Main interface : your grid . Here you  need to use with() and within with you need to call your queryentity with the pagingInfo . So everytime you will click on next button only 50 records will fetched from database.&lt;br /&gt;
&lt;br /&gt;
I hope this will you give the way to implement your requirement.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Abhay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>