Bob Yesenskiy
Bob Yesenskiy

Reputation: 414

Xpage xe:Dialog box is edit previous create document

I have a custom control that create a new document through ext-lib dialog box that work fine. However when the action is performed the second time it edit the document instead of creating a new document. The datasource is set to create document.

Upvotes: 2

Views: 720

Answers (1)

Patrick Sawyer
Patrick Sawyer

Reputation: 1382

I had to do two things with the 2nd datasource. First was to set ignoreRequestParams to true and then set the scope to request. These are both in the properties of the data.

<xp:dominoDocument var="document2" formName="software" ignoreRequestParams="true" scope="request"> </xp:dominoDocument>

I had a dialog that brings up a form with a view and unless I changed the scope to "request" I would be adding/editing multiple documents at the same time.

Here is some data on scoped variables http://www-10.lotus.com/ldd/ddwiki.nsf/dx/xpages-scoped-variables.htm My problem was the item was staying in memory too long.

I asked a similar question xPage with multiple datasources has the second datasource always opened in edit mode

Upvotes: 3

Related Questions