Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8461879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:00:16+00:00 2026-06-10T14:00:16+00:00

In an XPage application we look after, users have long been complaining of data

  • 0

In an XPage application we look after, users have long been complaining of “data loss” at random times when using it. By this they mean that when they submit the document they sometimes have the page refresh and all the fields they have just edited are blank, or in the state at the time of original page load and so they have experienced Data Loss. It has taken a lot of time to work out what is going on, with every action they perform now being logged in documents so I can review it. We found out what is happening and I need to work out a way around it:

  1. Open document in window 1 in Chrome / IE – browser not important.
  2. Open another window in browser and search for the same document in the app, open it (this opens it in read mode by default)
  3. Document has multiple tabs on it as there is a lot of information – user goes to the tab they want to copy information from on the read only copy in window 2
  4. User then starts typing information in to the editable version in window 1 – they want to reference part of the document that is on another tabbed panel, hence having it open in to windows.
  5. User submits their changes. Unfortunately, because they have opened the doc in another window, then clicked on one of the tabbed panels to open another part of it, the editable version effectively becomes dis-associated from the context in server memory (I assume) – the changes are lost on the submit and the user needs to re-enter.

If they open the read only version and don’t navigate around the tabbed panels, they can continue working in the editable version just fine. It seems that the submission of the document, even when it’s in read mode, breaks the link that the editable version has with the server. Why is this and how can it be prevented?

I would want to prevent them opening it in another window (not sure how though) as an absolute last resort – it’s become a way of working for many users in many countries. Any ideas??

Some more info as requested:
Ok so the documents are problem reports. Basic details about the caller, model affected and such on the first tab. There is an attachments tab, and among others, there is a solution tab.

When identifying what the user was doing, he basically said that because he couldn’t remember the caller’s name and wanted to address the solution to the caller, he opened the document in another window. Seems a bit lazy but anyway.

There was a post by a guy called John Mackay I think some time ago about keeping track of the tab that was selected with a sessionScope variable that I am using for a couple of reasons. The onclick event of the tabs therefore sets the sessionScope.tabSelected var to whatever is selected. This helps when I do a full update on the document, in that the tab the person was last on is the one that is selected by default after the refresh. So when the user opens the document in another window, the sessionscope var causes the same tab to open there too.

If the user is on the “Solution” tab and they open the doc in another window, the solution tab is also selected. They then have to select the “Information” tab to go and find the caller’s name and it’s this that causes the problem. Maybe a var with a lesser scope may fix it? I have tried “Do Not update or validate” and “Partial execution” settings with the onclick but that hasn’t fixed it. I am going to try it without setting scoped vars on the tab clicks when I’m back in the office tomorrow to see if this fixes anything and will report back

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:00:18+00:00Added an answer on June 10, 2026 at 2:00 pm

    Solved! I had a tabbed panel and in the definition, I had :

    selectedTab="#{javascript:sessionScope.TabSelected}"
    

    On each of the tabs, I had an event handler that would set sessionScope.TabSelected. I tried Partial Execution Mode, I tried Do Not Validate or Update Data but nothing worked.

    Then I removed the event handler completely on each tab and also the selectedTab property. Now you can open the document in edit in 1 window, and read in another, click tabs in the read version and it doesn’t affect the document in the editable window. Submit the editable version and it’s not rejected by the server which is exactly what I want.

    The only downside is that if you perform a full update on the document now and the page reloads, it goes back to the first tab in the tabbed panel instead of where you were. I’m hoping this will be acceptable by the users!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have been getting an error prompt/alert in our XPages application at random times:
I'm developing a xpage application using an anonymous form for yet unknown (not authenticated)
I have a xPage application which shows list of emails of the currently logged
I have an Xpage page with a single Notes document datasource. After saving a
I have an XPage which has just broken due to (what should have been)
I have a small problem with an Xpage Application and hope that someone has
Let's say If I have an application where I have been keeping all my
I am trying to launch a XPage(web) mobile application from a email(Lotus traveller). When
In Xpage's CheckboxGroup, I have to get the values of both value and Label.
in my xpage I have an editbox for user to enter the name of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.