Background: I am trying to create a Notes App that will be accessed through the web. I use a form to create a parent document. From this parent document, I have a button that opens a response document.
Problem: In the browser, when a main document is first created, there is a temporary document id. A permanent doc id is not created until the document is saved. So, if the response is created, it does not have the true doc id associated with it.
A few unsuccessful attempts at a solution:
- Inserting a @Command([FileSave]) in the button.
Result: I found out the hard way that the FileSave is executed after all other commands, no matter the order. So, the response document is being created, then the main document is saved. The response document is not associated with the permanent main doc.
- Perform a @Command([FileSave]) in the WebQueryOpen then have an agent clean up any empty documents periodically.
Result: This created Save Conflicts.
- Create a LotusScript agent that saves the main doc when the response doc is opened.
Result: This may be because of my lack of LotusScript skills, but this saves the main document without providing a connection to the response doc. My assumption is that since the actions are taking place at the server, a link is not created between the document in the browser and the document saved on the server.
Any suggestions or help would be very appreciated.