@Lothar: Thanks, I finally did find that in help. I haven’t found anything better so far.
@Erik: I’ll take another look in there but I didn’t see anything useful for debugging yesterday.
Xpages data source Query Save events never seem to happen. I don’t know if this is a bug or I’m doing something wrong.
When working with a server-side script i.e. submit button onClick event, it is important to know that you are working with the NotesXSPDocument object (and it’s properties/methods) NOT the back-end NotesDocument that will be saved later.
I found that, unlike Forms, if a XPage posts an empty field attempting to get that field’s value returns null so I wound up using the following conditional Javascript structure to get fields or return a default value:
var fldval=(dataSource.getItem(“myField”)) ? dataSource.getItem(“myField”) : “”;
Default values entered on a form that you use with Xpages do not get set on the Xpage. You have to set the default values in the Xpage field properties.
The following SPR had been reported and fix in the 8.5.1 code stream: PHAN7MCC47: [FP?] The Save Document simple action doesn’t fire the querySaveDocument event
Is it how you’re saving the document? If you call the global save() method instead, or let a submit button do it, then the method should be called.