9 61 DOM_CREATE_DOCUMENT

LANSA Technical

9.61 DOM_CREATE_DOCUMENT

Þ Note: Built-In Function Rules.

Creates a new document/data note in memory within an opened database.

Note that the document/data note is empty after creation and is not yet stored in the database.  You should use the DOM_ADD_ITEM Built-In Function to add items/fields to the note and the DOM_UPDATE_DOCUMENT Built-In Function to update the document/data note in the database.

For use with

LANSA for i

YES

Visual LANSA for Windows

YES

Visual LANSA for Linux

NO

 

 

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Database handle

4

4

 

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Return code

OK = Document successfully created.

ER = Document not created.

2

2

 

 

2

A

Req

Document/Data  Note Handle

4

4

 

 

 

 

Example

Refer to these Domino Built-In Function Examples:

Example 1: Creating a New Document in a Database

Technical Notes

This Built-In Function uses the standard Lotus Notes API NSFNoteCreate. All security and integrity issues related to the use of this Built-In Function are according to normal Lotus Notes API use for the current platform.