A stored form cannot contain computed subforms

Someone has written a bit of VB Script, which sends out a notes memo with some text in it (using ActiveX I believe).

When a R5.0.8 client opens the memo, it is fine. But those with 6.5 get the error “A stored form cannot contain computed subforms”.

Not sure why this is happening, one suggestion in the forum was to remove all shared actions from the stored form, but as it is the memo form, I think is wise to leave it alone.

Any better suggestions?

TIA, James

Subject: RE: A stored form cannot contain computed subforms

Change your script that sends the mail, to not use a stored form (boolean argument to Send function). If, as you say, the form in question is the Notes memo form, then every user already has that form in their mail file, so there’s no need to store it.

Even if the user didn’t have the form, you should do everything in your power to avoid storing the form. RenderToRTItem, provide a link to the document in the original database, but whatever you do, don’t clutter the user’s mail file with dozens of copies of the same form.

I’m not familiar with the change in question between 5 and 6, but if you think about it, it makes sense. A regular included subform always uses the same subform. A copy of the subform can be inserted into the stored form. But a computed subform may potentially use a different subform every time the document is opened. The Notes mail sending code has no way to know which subform should be copied into the document – if it chooses the one that the subform formula currently selects, there’s no way to know whether that selection will still be valid when the recipient opens the document.

Subject: RE: A stored form cannot contain computed subforms

Thanks Andre, you were correct!

Call domNotesDocumentMemo.SEND(True)

i changed to

Call domNotesDocumentMemo.SEND()

and it worked perfectly!