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 14, 2012, 12:08 PM
18 Posts
topic has been resolvedResolved

Not able to save to domino document

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
I am trying to simply save a document (xpage) so that the amendments are saved in the notes document.
 
I have tried using the simple actions and have looked around the forums and the web in general and tried different options, all have not worked.  As I am very new to Xpages development I was wondering is there something fundemental that I have missed in order to be able to save the document?
 
You help is much appreciated as frustration is starting to set in :)
 
Matt
Feb 14, 2012, 1:11 PM
272 Posts
Re: Not able to save to domino document
Hi Matt,
 
there are a lot of possible reasons why a document can not be saved.
 
Some of them are:
  • A field "SaveOptions" with "0" exists in a form
  • A validation in the XPage fails, but no Error Message will be displayed
  • A validation in the form exists and fails
  • The XPage is not submitted to the server
  • Wrong access rights?
  • ...

Is a request sent to the server if you hit the save button? Do you have checked the server console? What happens if you save the document via SSJS?

Hope this helps
Sven
 
Feb 14, 2012, 1:46 PM
18 Posts
Re: Not able to save to domino document
Hi Sven
 
Thanks for the reply
 
I cannot see any request sent, nothing appears on the console and that was using SSJS.
 
var id = NotesXspDocument.getParentId();
var doc = database.getDocumentByID(id);
doc.replaceItemValue("CompanyAddressLine1", NotesXspDocument.getItemValue("CompanyAddressLine1"));
doc.save();
 
It also doesn't work using the simple actions.  I have set for errors to be displayed but non are displayed.  I have set the success and failure pages but on clicking the save button it doesn't go to either of those, so suggests the request is not being made???
Feb 15, 2012, 11:00 PM
18 Posts
Re: Not able to save to domino document
 
var id = NotesXspDocument.getParentId();
 
have you specified NotesXspDocument ? 
 
use currentDocument such as currentDocument.getParentId()   - currentDocument is a global variable that always exists 
 
you could also use  
 
var xspDoc:NotesXspDocument = currentDoc;
var id = xspDoc.getParentID();
 

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