Values does not show in a view eventhough document has been saved

Hi,

I tried to create a document with a form. In the PostSave event of this form, i create a document using another form. Eg:

Set newdoc = db.CreateDocument

newdoc.Form = “NewForm”

newdoc.field1 = “1”

newdoc.field2 = “2”

newdoc.field3 = “3”

Call newdoc.ComputeWithForm(False, False)

success = newdoc.Save(True, False)

Then i create a view to see all those document created by NewForm. But the values does not show in the view. Then i go into the document and the values actually have been saved. I need to edit the document again and save and close, then the values appear in the view…

Why is this so?

Subject: Check the SUMMARY property.

If you look at the document properties, the field items should have a Field Flag of SUMMARY in order to show up in the view. If it is not, you will have to set that value or prevent it from being removed. Your ComputeWithForm call may be removing the SUMMARY flag.