<?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>How To Reset Paging info ?</title><link>https://community.appian.com/discussions/f/general/23805/how-to-reset-paging-info</link><description>Hi Everyone, 
 I am getting this error for paging 
 A grid component [label=&amp;quot;Search results&amp;quot;] has an invalid value for &amp;quot;value&amp;quot; and &amp;quot;totalCount&amp;quot;. &amp;quot;startIndex&amp;quot; must not be greater than &amp;quot;totalCount&amp;quot;, but &amp;quot;startIndex&amp;quot; was 11 and &amp;quot;totalCount&amp;quot; was 0 . 
 
 For</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91576?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 13:23:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21e0576f-cfca-4332-88dd-b8724ec639f0</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you also confirm which version of Appian you are using? In general 19.2 and later it is usually not necessary to manage paging outside of the grid at all, which could simplify your UI. For example, here&amp;#39;s a sample expression for a grid that contains a filter above it:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.4/recipe-filter-the-data-in-a-grid.html#manually-creating-a-filter-on-the-grid"&gt;docs.appian.com/.../recipe-filter-the-data-in-a-grid.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91558?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 07:31:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b7f317c-e9ab-49de-8fef-e074da8af03d</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;It would be easier for us to find out the issue if you could paste the code here. You need to make sure you have data in your local variable and total count is not 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91556?ContentTypeID=1</link><pubDate>Fri, 25 Feb 2022 07:28:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e36d0f3-8087-453e-af93-b0dc80d570a8</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;Hi  after applying null check in grid, it is showing same error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91505?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 09:32:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cbdc716-634f-4896-996b-f6d1a8a76c5d</guid><dc:creator>marcusmoo</dc:creator><description>&lt;p&gt;Total count is 0 means you&amp;#39;re not fetching any data. If possible you can show your a!queryEntity codes as well.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;local!pagingInfo: a!pagingInfo(&lt;/span&gt;&lt;br /&gt;&lt;span&gt;startIndex: 1,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;batchSize: 5,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;sort: a!sortInfo(field: &amp;quot;Id&amp;quot;, ascending: false())&lt;/span&gt;&lt;br /&gt;&lt;span&gt;)&lt;br /&gt;&lt;br /&gt;At the pagingInfo parameter, if you were to call local!pagingInfo. It will work if data is there.&lt;br /&gt;&lt;br /&gt;Further insights, if you are using a later version of appian with a!localVariables&lt;br /&gt;&lt;br /&gt;local!pagingInfo: &lt;br /&gt;a!refreshVariable(&lt;br /&gt;value: a!pagingInfo(&lt;br /&gt;startIndex: 1,&lt;br /&gt;batchSize: 5,&lt;br /&gt;sort: a!sortInfo(field: &amp;quot;Id&amp;quot;, ascending: false())&lt;br /&gt;),&lt;br /&gt;refreshOnReferencedVarChange: false()&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91503?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 08:43:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fee75a27-6fe6-4da1-bef5-c09f88917955</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;like i mentioned before ;)&lt;br /&gt;the issue is not the paginginfo. its your data. You grid has no data as totalcount is 0&lt;br /&gt;so check why you query rule (or whatever you are using to get the data) is giving you no valid result.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91499?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:46:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eae5916d-f180-4896-873b-df58322db599</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;you are getting total count is 0 . It means you dont have data to be fed into the grid. So you have to apply null check . you would need to pass data into the grid only if its not null. So just make sure your data does not have null , otherwise you will get this error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91498?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:42:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21e8e5ce-9dbc-493c-8697-f9d27cd0ddda</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;I tried the above solution but getting same error&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!gridField [line 186]: A grid component [label="Search results"] has an invalid value for &amp;quot;value&amp;quot; and &amp;quot;totalCount&amp;quot;. &amp;quot;startIndex&amp;quot; must not be greater than &amp;quot;totalCount&amp;quot;, but &amp;quot;startIndex&amp;quot; was 6 and &amp;quot;totalCount&amp;quot; was 0.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91497?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:28:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a02c82cf-ce80-4976-8b34-040266c1e3cf</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi, Try to do something like below, this way , everytime you select anything from dropdown, your local!pagingInfo variable will refresh,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  
  local!pagingInfo:a!pagingInfo(
    startIndex: 1,
    batchSize: 5,
    sort: a!sortInfo(field: &amp;quot;Id&amp;quot;, ascending: false())
  ),
  a!dropdownField(
    label: &amp;quot;Dropdown&amp;quot;,
    saveInto: {
      a!save(
        local!pagingInfo,
        a!pagingInfo(
          startIndex: 1,
          batchSize: 5,
          sort: a!sortInfo(field: &amp;quot;Id&amp;quot;, ascending: false())
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91496?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:23:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb40d1bc-c4e5-4d7a-9198-8f99b68cda31</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;for Paging I am using localvarialble to save&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91495?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:23:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aabcdcbc-4f4d-4235-9952-71cbd6cd35c8</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;No, I try to reset the paging based on drop down&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91494?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:21:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c32aa7f-61f3-40a5-b9ac-c3a06a78ce8d</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Are you trying to save pagingInfo in your dropdown&amp;#39;s save into?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91493?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:19:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a9a6512-32b5-4f06-9a3b-cccc90f5c253</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;my requirement is if I select any thing from DropDown I am getting result and able to display in grid,&lt;/p&gt;
&lt;p&gt;like the If I select another value from drop down I am able to reset everything but paging not getting reset and for that reason I am getting error&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!gridField [line 185]: A grid component [label="Search results"] has an invalid value for &amp;quot;value&amp;quot; and &amp;quot;totalCount&amp;quot;. &amp;quot;startIndex&amp;quot; must not be greater than &amp;quot;totalCount&amp;quot;, but &amp;quot;startIndex&amp;quot; was 6 and &amp;quot;totalCount&amp;quot; was 0.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91492?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 07:14:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19cf831b-a127-477c-b142-2024a3f0a8b7</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;I can&amp;#39;t insert code due to some restriction&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91486?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 06:16:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b329c933-8f08-4205-b546-5470ec287630</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;I think you issue looks like more that the paginginfo is in general working. its complaining that you have &amp;quot;no data&amp;quot; (Total Count is 0) and you try to start at the 11th item in your data(array). that doesn&amp;#39;t fit.&lt;br /&gt;Can You insert your code via &amp;quot;Insert&amp;quot; (below the writing box)- &amp;quot;insert code&amp;quot; function ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91485?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 06:03:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1286c35-8bbe-4e45-8a76-3e7781e01993</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Try to use fv!pagingInfo instead local variable.Please go through below link ,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/read-only-grid-configuration.html"&gt;docs.appian.com/.../read-only-grid-configuration.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91484?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 05:59:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:590b2f32-4af9-4c68-a422-80083e0f7b39</guid><dc:creator>minhajk0002</dc:creator><description>&lt;p&gt;I have configure value parameter for the grid, problem is I am using Local Variable to save the paging&amp;nbsp; info like&lt;/p&gt;
&lt;p&gt;local!groupWorkPagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 5,&lt;br /&gt; sort: a!sortInfo(field: &amp;quot;Id&amp;quot;, ascending: false())&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;I want to refresh/reset the paging when the value is blank in text field&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How To Reset Paging info ?</title><link>https://community.appian.com/thread/91483?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 05:52:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da884d99-f4c9-4888-a18f-a3a86d50e770</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi , can you share your code. I think you did not configure value parameter for the grid, also pagination is not working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>