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



Sep 2, 2011, 9:22 AM
66 Posts

How to properly synchronize DominoDocument(from data source) with Document (underlying one) ?

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 0
 How to properly synchronize DominoDocument(from data source) with Document (underlying one) ?
On xPages I have a several fields and button that calls my JAVA code (with Full refresh). I'm sending the DominoDocument to code as parameter to access document values. The code snippet is below.
Now in my code co access the underlying document with updated values I have to call DominoDocument.getDocument(true); with parameter 'true' to apply changes from frontend to backend. Then a have to make some changes to this underlying document but after page refresh, I could not see the updated values in appropriate fields. I found out, that I have to apply changes from underlying document back do DominoDocument. I was trying several ways when finished on using  DominoDocument .setDocument(Document); . Is it proper way how to manipulate with DominoDocument and Document objects? It seems a bit complicated to me ...
 
 
 
public void selectManager(DominoDocument uidoc) throws NotesException{
  Document cdoc=uidoc.getDocument(true);
  # .... some field updates on cdoc
 
  uidoc.setDocument(cdoc);

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