WebQuerysave agent does not save correct document

I create a new document on the web. In the Webqueryopen agent I can see that the fields are being set correctly.

However, when I try and save the just-created document, all the fields are blank.

I am using session.DocumentContext to get the document.

I have never had this problem before.

Did I miss something?

Thanks!

Dan

Subject: WebQuerysave agent does not save correct document

Is this the issue, from Dom Designer help:

…Note WebQueryOpen agents run when the user opens a form or document, but do not run when the user saves a document. This means that computed fields set by a WebQueryOpen agent are not saved when the user submits a document. To make sure computed fields are saved, you can either recalculate them in the WebQuerySave agent or set the form property “Generate HTML for all fields.”

Subject: RE: WebQuerysave agent does not save correct document

DOH!!!

Totally forgot that!

Thanks!

Dan