Found this one out today. If you have querySaveDocument code and you have a button of type submit that has an action that saves the document, your querySave code will actually run twice.
I'm working on modernizing a fairly hefty application with a lot of existing script libraries which we want to leverage within the XPages environment. Here is a technique that works very well. First, create an in-memory document in SSJS. We can set any input values needed for the back end. Then we pass that document to a LS Agent which can work it's magic using the values set in SSJS and use the same document to return values back to the XPage. Here is how it works in detail:
Comments
Post a Comment