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



Feb 23, 2016, 6:08 AM
67 Posts
topic has been resolvedResolved

one backend doc, multiple xpages: save on exit

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 2

Hi,

i have a very extensive form.

To  give the user better structure, i've build a navigation system based on oneui with some navs at the left and on top. Every nav opens a new xpage based on the same backend doc. That works very well.

 

The problem is:

I have to put a save button on every page to save user input on a specific page. My wish is to do that automatically.

Is there a posibility  to save the old xpage before entering the new one automatically when clicking a new nav (in oneui environment)?

Or is it necessary to create own nav structures under my control without oneui ?

 

Thanks

Uwe

Feb 24, 2016, 5:39 PM
453 Posts
some Thoughts

First I'm assuming that by saying that you are using the OneUI that you really mean that you are using the ExtLib Application Layout control.

I got rid of the OneUI and Application Layout some time ago and built my own structure. It is actually very simply a set of facets that I put my content into. In addition now I do everything using BootStrap. Having the same backend document open in multiple instances of a session would appear to me to be pretty dangerous. I have used various tabbed table structures to display different parts of the same document and have essentially come up with a simple solution. I create a panel for each section of the document, and a navigator that sets a viewScope.selectedTab = "Header" where the panel has a style viewScope.selectedTab == "Header" ? "" : "display:none" I don't use the visible property because it does not just make the panel visible but also unavailable so the save does not save the content from different panels, which I'm guessing is what you want to do. Takes a bit of time to create the navigation and panel structure but once done is easily modified.

Feb 25, 2016, 7:25 AM
67 Posts
perfect answer ....

Thank you Bill, i will try your approach ...


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