1
votes

I am working with xpages and need a unique number to be generated for each document. After saving the document, I want the user to be on the same page viewing the generated number. For this I have used the a action group on the submit button - 1) first action is a simple action which is saving the document. 2) Next action is script editor where I am calling my number generation agent 3) The last one is a simple action which is changing the current document mode from Edit to Read so that the user is still on the same xpage document after saving. But I see that the document is saved properly and also changed to read mode but I cant see the number generated. But if I close the document & open it again I see that the number is generated. I want this number to be shown without closing & reopening the document. Any help is appreciated.

2
Welcome to SO! You need to attempt this, post the code you try, and any problems you are having so that we may help you with said issues. See the How to ask page for help in improving your question.Madness
For info, to get at the code to post, go to the source pane.Paul Stephen Withers

2 Answers

0
votes

If you're updating the backend Document datasource, you'll need to either fully reload the page or close and re-open. Try setting the unique reference on the dominoDocument datasource and re-saving that. Alternatively, build the relevant URL to the XPage with the relevant documentId parameter and redirect accordingly.

0
votes

You can put a Full Upload at your onClick event or a partial Upload.

With the partial Update will update just one element of your page, if your computed fields are inside this element they will be updated.

http://i.stack.imgur.com/g0DA7.png