This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 29, 2012, 9:23 AM
11 Posts

pagerSaveState working with Dynamic Content

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags: pagerSaveState,Dynamic Content
  • Replies: 2
I have one xpage holds a combo box with a list of views, based view selected in the combo box, than the Dynamic Content displays the view panel accordingly.
the pagerSaveState is on the custom control where the view panel sits. The view data source is also on the custom control.
I use this method because I though this is a easy and quick way to have control over the view panel (a lot things you can't control easily by using the dynamic view panel) yet still just have one xPage for all the views instead of having one xPage per view...
 
Now my problem is with after user click the Cancel button on a document of which the it execute the script below
viewStateBean.restoreState = true;
return  "xsp-success";  
 
Now it takes user back to the xPage holding the dynamic Content, but the view panel doesn't show any view data. All pagers of the view panel are displayed, but not data. Once I click on the collapse or expand link from the pager, than the view panel appear. but then the previous view state was lost.
 
I just wonder if this should be working, if yes then what might have caused the problem?
 
Any suggestion will be highly appreciated.
 
Thanks in adv
Xun    
Mar 29, 2012, 9:35 AM
11 Posts
Re: pagerSaveState working with Dynamic Content
Also, there is a label displays the selected view name using dominoView.getName(); on each custom control where the view panel sits.
So dominoView data source definitly is defined for that view panel,but no data is showing... 
Mar 29, 2012, 2:49 PM
11 Posts
Re: pagerSaveState working with Dynamic Content: Working now!
It's working now. after more than a half day fiddling around, it seems like once I put the data source (dominoView) in the View Panel then the pageSaveState worked. If I have the data source on the parent Panel of the view panel or on the xPage, it stops to work.
 
But that's fine for this situate.
 
  

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal