Response Document

Hi,I have an application which let the user to create response document using a pop up @Dialogbox, then using an agent it get the field values from the @dialogbox form and create a response document. However, using the above method, I do not get the result I want. I think this happened was due to the formula I used as below :

Set doc = db.CreateDocument

doc.Form = “Response”

It created a document instead of response document. Does anyone has any idea on solving this problem? Please Help. Thanks.

Subject: Response Document

Response-type forms only create response documents when you compose the document (that is, the document is created when a blank form is opened into the UI). For documents you create using LotusScript, you need to use the doc.MakeResponse(parentDoc) method to make the document a response document.

Subject: Response Document

Try this:

Set parentDoc = uidoc.document

Set doc = db.CreateDocument

doc.Form = “formName”

Call doc.MakeResponse( parentdoc ) '<----this is what you need

Call ws.DialogBox(“formName”,etc…)