What I’d like to do is display a dialog pop-up to the user when they first create a document that will display to them the Reference # that’s been assigned to the document. The Reference # is assigned in a LS agent that’s submitted from the postSaveDocument event. The [Save] button does a Full Update then returns to the Launch Page on success.
If I change the [Save] button to do a partial refresh on some part of the XPage, I can pop the dialog in the onComplete event but the Reference # on the dialog is blank – I suspect the CSJS is running before the postSaveDocument event (??). Besides, I really don’t want to leave the document open after the dialog is dismissed – I’d like the user returned to the Launch Page.
Any ideas or suggestions ?? Please! and Thank-you!!