Calling XPage gurus: submit button to submit only ONE datasource instead of ALL datasources
Julian Buss, August 18th, 2009 12:30:55
I had this problem in 8.5.0 some months ago, and now it popped up again. I tried everything I know, but failed so far.
- one xpage
- with three custom components
- in each component there is a panel with a datasource of type "create document". The datasource is defined with the panel, not in the control.
- inside the panel I have some fields and a "save" button
So, the XPage contains THREE document datasources, all of them with the action "create document". But all datasources are defined in DIFFERENT panels.
And in every panel there is a save button.
When I set the save buttons to type "button" with the action "save document", only the datasource inside the panel is being saved - that's fine. BUT after saving the datasource needs to repesent a NEW document, not the formlerly saved document.
When I set the button to type "submit", it saves the datasources and then creates a new document, just as I want. But then ALL datasources are saved.
I played with partial refreshes and partial exection mode without luck. A submit button always seems to submit all sources.
So, what I need is either
a) a solution for submitting only ONE datasource
or b) a solution to have a button of type "button" which saves a datasources and creates a new document after that (like a submit button)
Who can help?