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.