<?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>Paging grid row limitation</title><link>https://community.appian.com/discussions/f/user-interface/17577/paging-grid-row-limitation</link><description>Hi, 
 
 I have a paging grid which is displaying only 1,175 rows in all environments but from query entity i am getting 3000+ records and from sql query as well. Is there some limitation on the number of rows that are displayed in a paging grid or what</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Paging grid row limitation</title><link>https://community.appian.com/thread/69267?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 13:51:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f24cb952-9da7-4b3a-8fab-aa88ada7401a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This is a known issue when querying from a View where the View&amp;#39;s CDT is configured with a Primary Key column that is not actually unique within the View&amp;#39;s data set.&amp;nbsp; In other words, if whatever column you&amp;#39;ve defined as &amp;quot;primary&amp;quot; in the CDT has duplicates in different rows of the view table, only the unique instances will be counted when returning the paged TotalCount.&amp;nbsp; I don&amp;#39;t consider this an error within Appian but rather an error in implementation.&amp;nbsp; The solution to this is to configure your View such that it has at least one column that will always be unique, and configure the CDT for the view to use this column as the Primary Key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Paging grid row limitation</title><link>https://community.appian.com/thread/69266?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 13:50:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bdc4e862-49c5-40b9-b0d0-6a324bb9f09f</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you check to see if your primary key is unique? Appian should always return the correct number of rows if you use -1 as batch size, but it relies on a count of the IDs for all other batch sizes, so it can return incorrect numbers if the primary key isn&amp;#39;t unique.&lt;/p&gt;
&lt;p&gt;Even if you don&amp;#39;t have a unique field, you may need to create a view that uses a row count field or something to make sure your total counts are correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Paging grid row limitation</title><link>https://community.appian.com/thread/69262?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:43:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:552f6799-5322-4b75-8f1c-91ac92e05b25</guid><dc:creator>apoorvam</dc:creator><description>&lt;p&gt;I am using a queryentity and cant make changes and make it as query rule, although queryentity is giving me 3000+ records correctly&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Paging grid row limitation</title><link>https://community.appian.com/thread/69260?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:35:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3838208a-cde7-4ad3-b2a7-a35968b6fac5</guid><dc:creator>bhanuprakash1303</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try this way,&lt;/p&gt;
&lt;p&gt;create a separate query rule and placed here..In that query rule placed startindex:1 and batcsize:-1 but in this rule used (1,25)&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;/p&gt;
&lt;p&gt;local!pagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 25,&lt;br /&gt; sort: a!sortInfo(&lt;br /&gt; field: &amp;quot;A&amp;quot;,&lt;br /&gt; ascending: false()&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;with(&lt;br /&gt; local!datasubset:todatasubset(&amp;nbsp;rule!queryrule,local!paginginfo),&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;a!gridField(&lt;br /&gt; label: &amp;quot;Sample Report&amp;quot;,&lt;br /&gt; totalCount: local!datasubset.totalCount,&lt;br /&gt; columns: {&lt;br /&gt; a!gridTextColumn(&lt;br /&gt; label: &amp;quot;A&amp;quot;,&lt;br /&gt; field: &amp;quot;A&amp;quot;,&lt;br /&gt; data: tointeger(&lt;br /&gt; index(&lt;br /&gt; local!datasubset.data,&lt;br /&gt; &amp;quot;A&amp;quot;,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;value:local!pagingInfo.&lt;/p&gt;
&lt;p&gt;saveInto:local!paginfinfo&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Paging grid row limitation</title><link>https://community.appian.com/thread/69259?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 08:26:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac30ea28-7e8c-4f11-90ec-706827071164</guid><dc:creator>apoorvam</dc:creator><description>&lt;p&gt;Yes I checked in database it has 3000+ records.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The following is the code snippet:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;/p&gt;
&lt;p&gt;local!pagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 25,&lt;br /&gt; sort: a!sortInfo(&lt;br /&gt; field: &amp;quot;A&amp;quot;,&lt;br /&gt; ascending: false()&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;with(&lt;br /&gt; local!datasubset: a!queryEntity(&lt;br /&gt; entity: cons!TEST_DS,&lt;br /&gt; query: a!query(&lt;br /&gt; logicalExpression: a!queryLogicalExpression(&lt;br /&gt; operator: &amp;quot;AND&amp;quot;,&lt;br /&gt; filters: {&lt;br /&gt; a!queryFilter(&lt;br /&gt; field: &amp;quot;A&amp;quot;,&lt;br /&gt; operator: &amp;quot;not null&amp;quot;&lt;br /&gt; ),&lt;br /&gt;a!queryFilter(&lt;br /&gt; field: &amp;quot;B&amp;quot;,&lt;br /&gt; operator: &amp;quot;not in&amp;quot;,&lt;br /&gt; value: {&lt;br /&gt; &amp;quot;Closed&amp;quot;,&lt;br /&gt; &amp;quot;Complete&amp;quot;,&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; pagingInfo: local!pagingInfo&lt;br /&gt; )&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;a!gridField(&lt;br /&gt; label: &amp;quot;Sample Report&amp;quot;,&lt;br /&gt; totalCount: local!datasubset.totalCount,&lt;br /&gt; columns: {&lt;br /&gt; a!gridTextColumn(&lt;br /&gt; label: &amp;quot;A&amp;quot;,&lt;br /&gt; field: &amp;quot;A&amp;quot;,&lt;br /&gt; data: tointeger(&lt;br /&gt; index(&lt;br /&gt; local!datasubset.data,&lt;br /&gt; &amp;quot;A&amp;quot;,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When i pass -1 as batch size, all the 3000+ records are seen in the report but with any other batch size I can see only 1,175 records&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Paging grid row limitation</title><link>https://community.appian.com/thread/69254?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2019 07:42:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:efc85725-bf07-4101-8fb8-c991a27c83cb</guid><dc:creator>bhanuprakash1303</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;can you please check your database, it contains 3000+ records?&lt;/p&gt;
&lt;p&gt;if it is yes, it should be displayed&lt;/p&gt;
&lt;p&gt;Can you share your code snippet if possible will find out the problem.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bhanu Prakash&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>