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 25, 2011, 5:27 AM
13 Posts

Save datasources vs Save document action.

  • Category: Other
  • Platform: All
  • Release: 8.5.1
  • Role: Developer
  • Tags: Save datasources vs Save document action.
  • Replies: 2
Hello,
 
I was trying to preview an xpage I developed in IE 6.0,the build is done in 8.5.1.
As per the requirement I tried creating document's in other db's,(i.e. xpage reside in db1 and through this xpage I create document in db2 and db3) in client it worked well and I got document created,but when same xpage launched in IE and after filling  4-5 fields as test data and attaching a document I pressed save button now error I got in IE browser was "exception occured calling method notesxspdocument.save() not allowed to access or modify the file".After some analysis I changed action of my save button from save datasources to save document and this worked well both in client and web.
 
Any advice on above behaviour of the page.
 
 
Thanks. 
Feb 25, 2011, 10:08 AM
122 Posts
Re: Save datasources vs Save document action.
Save document action will only save the first DominoDocument datasource on your XPage, but save datasources will save all datasources on the XPage, which may include datasources you do not have access to save.
 
Unless I specifically want to save all datasources, I tend to use the SSJS script option of e.g. document1.save() . That means even if the Custom Control is added to another XPage where it is not the first datasource, it's still guaranteed to work as I intend.
Mar 4, 2011, 10:49 AM
261 Posts
Re: Save datasources vs Save document action.
Do note that when you use document1.save(), the querySave event of the data isn't triggered. It is only triggered when you use one of the "simple actions".

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