Domino Code Fragment

Code Name*
How to Create a Document with "Store Form in Document" via LotusScript Back-End
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.136.18.48
Description*
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
By design, back-end classes do not make use of a form's "Store form in document" setting. This is setting is used only during the front-end creation of a document.
Files/Graphics attachments (if applicable): Code:
Classes

Problem:

By default, creating a document via the LotusScript back-end classes does not utilize the form setting "Store form in document." Is it possible to create a document that includes the form setting "store form in document" via the the LotusScript back-end classes?

Solution:

To create, via LotusScript back-end classes, a document that has the form stored within the document, you need to get a handle to the desired form and copy its contents into the newly-created document. To do this, you must make note of the form's Unique ID (UNID). The procedure to identify a form's UNID is provided below, along with a sample script.

How to Determine a Form's UNID:


Sample Script:

The following sample script creates via LotusScript back-end classes a document with "store form in document."