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, 2011, 9:15 PM
149 Posts

Re: save data sources creating multiple documents

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 4
a long shot...
 
 if you have other "none rendered" custom controls on the page make sure they do not have data sources in them
All datasources will be saved when you save, even the onces not rendered (unless you set the scope of the data source to request)

Best Regards
Thomas Adrian
http://www.notessidan.se
 
 

Feb 24, 2011, 9:35 AM
13 Posts
Re: save data sources creating multiple documents
Hello,
 
In past while developing xpage to push document created to other db i used save data source which use to create two document in two data sources which i didn't require.So as a workaround I used two panels on an xpage with each panel >> data has only single source and have created save as button type>>button and in event selected save document in both the panel.So now with hide when i use to bring panel required and save document in desired repository.
 
For your case please try making use of save button and in button tab options select button type as "Button" instead of "Submit"  and in event try saving the datasources as document1.save();document2.save() on button click event. 

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