191 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
XPages Tip: Adding a Bootstrap Class to All Labels via the Theme (Redux)
Wed, Jul 20th 2016 4
XPages Tip: Overriding, Concatenating, and Conditionally Adding Control Properties via a Theme
Wed, Jul 20th 2016 5
XPages Tip: Displaying Bootstrap Applications Properly on Mobile Devices
Tue, May 31st 2016 5
Efficiently Keeping an XPages Session Alive with JSON RPC
Wed, May 25th 2016 4
Browser Session Lifespan – Idle Session Timeout vs LTPA Token Expiration
Tue, May 24th 2016 5
XPages Tip: Passing an Array to a Custom Control Property
Tue, Apr 12th 2016 3
XPages Tip: Beware Server-Side code in Multiple onClientLoad Events
Thu, Apr 7th 2016 4
Top 10
Passing Parameters to SSJS from a Client-side partialRefreshGet()
Mon, Jul 14th 2014 11
Computing Custom Date Format Patterns Throughout an Application
Mon, Aug 18th 2014 10
I want to hear what YOU have to say
Mon, Feb 3rd 2014 7
Dojo Data Grid – Part 36: Conditionally Preventing Cell Editing
Tue, Feb 4th 2014 7
Dojo in XPages – 2: String Manipulation
Fri, Feb 7th 2014 7
XPages Tip: Disabling Required Validation in a Dojo Filtering Select
Fri, Aug 1st 2014 7
Gridx in XPages – 4: Loading Live Data via a REST Service
Mon, Nov 10th 2014 7
Gridx in XPages – 12: Adding Event Handlers and Opening a Document
Wed, Dec 3rd 2014 7
Gridx in XPages – 13: Customizing Cell Content
Fri, Dec 5th 2014 7
Gridx in XPages – 18: Formatting Date and Currency Columns
Thu, Dec 18th 2014 7


XPages Tip: Fixing a partial refresh issue with the Pager Add Rows control in a Data View
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
Brad Balassaitis    

I came across a strange issue with a Data View using a Pager Add Rows control resetting the number of documents displayed after a partial refresh. In this post, I’ll explain the scenario where I saw the issue and show the simple solution that fixed the problem.

The Problem

I have a Data View that starts with 20 rows and uses a Pager Add Rows control to add 10 more rows at a time.

Within the summary facet, there’s an action that can take place, which runs a minimal script and then performs a partial refresh with partial execution on the summary section.

This *seems* to be fine when performed within the first set of rows, but I noticed that if additional rows are added to the display and then the action is run in any one of the rows, the action runs successfully, but the data view is reset to only display the initial set of 20 rows.

If the action was taken on a row after the initial 20, I can add rows again and see that the action has taken place and the partial refresh has occurred as designed.

The Fix – Changing the ‘State’ Property

I tried making a number of changes to partial refresh and partial execution settings, but none of them fixed this issue.

Ultimately, the issue was fixed by a simple property change. The Pager Add Rows control has a state property (All Properties > basics > state)

When set to true, it stores the view state on the server.

Pager Add Rows - State Property

This did the trick. It allows the row count to be preserved between partial refreshes by storing it on the server.




---------------------
http://xcellerant.net/2014/08/25/xpages-tip-fixing-a-partial-refresh-issue-with-the-pager-add-rows-control-in-a-data-view/
Aug 25, 2014
7 hits



Recent Blog Posts
4
XPages Tip: Adding a Bootstrap Class to All Labels via the Theme (Redux)
Wed, Jul 20th 2016 7:08a   Brad Balassaitis
A
5
XPages Tip: Overriding, Concatenating, and Conditionally Adding Control Properties via a Theme
Wed, Jul 20th 2016 7:07a   Brad Balassaitis
A
5
XPages Tip: Displaying Bootstrap Applications Properly on Mobile Devices
Tue, May 31st 2016 7:07a   Brad Balassaitis
A
4
Efficiently Keeping an XPages Session Alive with JSON RPC
Wed, May 25th 2016 7:07a   Brad Balassaitis
A
5
Browser Session Lifespan – Idle Session Timeout vs LTPA Token Expiration
Tue, May 24th 2016 10:15a   Brad Balassaitis
I recently spent some time investigating a client’s reports of unexpected behavior with the duration of browser sessions while testing an application on a test server. From time to time, they were required to login even while actively using an application. In this post, I’ll highlight the difference between an idle session timeout and an […]
3
XPages Tip: Passing an Array to a Custom Control Property
Tue, Apr 12th 2016 6:06a   Brad Balassaitis
A
4
XPages Tip: Beware Server-Side code in Multiple onClientLoad Events
Thu, Apr 7th 2016 6:06a   Brad Balassaitis
A
2
getFragment() Doesn’t
Thu, Mar 24th 2016 7:07a   Brad Balassaitis
A
5
Transferring a Bitbucket Repository
Tue, Mar 22nd 2016 7:07a   Brad Balassaitis
A
3
Handling Errors in an XPages RPC Method
Wed, Feb 17th 2016 7:07a   Brad Balassaitis
A




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition