0
votes

I have 2 xpages that interact together. The first acts as a homepage and allows the user to create a new document and fill out some basic header information. The button to create the new document, sets a sessionScope var with the NoteID. It then saves document1 and opens the same document using another xpage.

The second xpages is bound to document1, and uses the sessionScope to edit the document. This xpages contains and editPanel bound to document2. I want to create a child document to document2. This works but what happens is document1 is also saved as conflict. It is also saved as a second main document.

I DO NOT want to save document1 at all, but can't seem to prevent it. The button that creates document2 uses the simple action save document, and specfies document2.

HELP, I have tried everything, and have been stuck on this for 2 days.

Thanks! Steve

3

3 Answers

2
votes

To bind to multiple datasources, on your XPage, under Properties expand Data and set "Ignore Request Params" to TRUE

1
votes

If you change the type of your buttons, to a simple button instead of a submit button, and handle the doc.save() yourself should solve your problem.

1
votes

The Save Document simple action accepts the name of the data source to save as a String argument. If supplied, it will only save that specific data source.