Auto Save and Close

I have one form that creates another form on the web, and what I would like it to do to the second form is inherit values, then save and close automatically without the users knowledge.

1st form–Save, and compose 2nd form.

2nd form-- Inherit, save and close returning them to a main menu.

Any help with some code would be much appreciated.

Mike

Subject: Auto Save and Close

Your need to write an agent to generate the second form and retrieve(inherit) the field value from the current form.

Put the agent name in the QuerySave even of the form. (or $$QuerySaveAgent field for older Notes version)

It’s pretty much like the registration database in the Sandbox.

http://LotusRnext.net

Subject: RE: Auto Save and Close

No, he wants a web solution.

This is most commonly done using a webquerysave agent. (Unless performance issues mandate using a scheduled or update-triggered agent instead.) And the answer to your question about validating first is also yes, since whatever validation technique you use will prevent malformed documents (not forms; documents) from being saved, and therefore not triggering the code to create the second document.

Look up webquerysave in designer help. If that’s not enough, search this forum; there’s lots of examples of using a WQS agent.

Subject: RE: Auto Save and Close

Excellent Bruce, I will explore the webquerysave and its function more and see if it works for me.Thanks for your response.

Mike

Subject: RE: Auto Save and Close

I also forgot to mention that the first form has values that need to be set before the new document is created. Will your suggestion be impacted with this new information? Basically the agent wouldn’t be able to run unless, in my case four fields have the value needed to move forward.Thank you for your response

Mike