FORMULA LANGUAGE


@SetDocField
Example

Given the unique ID of a document, sets the value of a specific field on that document. The document must reside in the current database.

Syntax

@SetDocField( documentUNID ; fieldName ; newValue )

Parameters

documentUNID


fieldName
newValue
Usage

This function does not work in column or selection formulas. @SetDocField is particularly useful in field, button, and agent formulas.

Note Starting with Release 6, you can use @SetDocField to set the value of a field in the current document, not just in other documents in the same database.

Language cross-reference

FieldSetText method of LotusScript NotesUIDocument class

GetDocumentByUNID method of LotusScript NotesDatabase class

ReplaceItemValue method of LotusScript NotesDocument class

getDocumentByUNID method of Java Database class

replaceItemValue method of Java Document class

Example
See Also