1
votes

I want to close a document after someone has updated it.

I tried the following javascript in the submit button:

document.forms[0].submit(); window.close()

But the web-query-save agent doesn't fire then. But if I comment out the 'close', the WQS agent executes as expected but then I have the dreaded "Form Processed" page. I supposed I could but a nice page up but I'd like to just close the page. Any thoughts?

thanks clem

1

1 Answers

1
votes

At the end of your WebQuerySave Agent you can print a message to output some javascript.

Print |<script type="text\javascript">| 
Print |window.close();| 
Print |</script>|