Hi all,
I want to create a doc when I click a button, this button launches my webagent. The agent fills the necessary fields of the new doc. Then the new document must be opened, printed and closed again.
Is this possible?
I have this script in my agent:
Print “”
But this doesn’t work. How can I get the documentuniqueid of my new document and how can I combine it with necessary url to open my new document, and this all in javascript? (like this: “/database.nsf/4C64123E99B88E92C1256EB60035F6C0?OpenDocument”)
Regards and thanks in advance
Subject: your print statements are not right
Your agent should create the new (Domino) document and assign it a form field and then save the document.
Then your agent should call the new document using the print statement (http://myserver.com/mydatabase.nsf/0/(unid of the document)?openform
Then have Javascript in the onload event of the form print the document. Not sure if the window.close() can be in the onload event of the form too…You will have to experiment.
Another way to to build all the html needed with print statements including the html head and the onload event of the web document…
Howard
Subject: First off, you do not need the & Chr(13)…
Print automatically appends after every Print. Secondly, you have to set a location…Print “”
Subject: RE: First off, you do not need the & Chr(13)…
thanks for your responses, it’s ok now.