FORMULA LANGUAGE
Assigns a value to a field stored within a document (use @Set for temporary variables). This is similar to using the FIELD keyword, except that @SetField can be used within another @function. If the field does not exist, this command creates it and applies the specified value to it.
Syntax
@SetField( fieldName ; value )
Parameters
fieldName
This function is most useful in agents, hotspot buttons, actions, and toolbar buttons. It does not work in column, selection, hide-when, window title, or form formulas.
With Release 6, you no longer need to declare the field receiving the assignment prior to setting its value with @SetField. For R5 or earlier clients, declare the field at the beginning of the formula, as follows:
FIELD Fieldname:=Fieldname;
The field that @SetField creates and assigns the specified value to if the specified field does not exist in the document is not visible to the user. You can remove a field added to a form this way using the @DeleteField function.
Language cross-reference
FieldSetText method of LotusScript NotesUIDocument class
ReplaceItemValue method of LotusScript NotesDocument class
replaceItemValue method of Java Document class
Example See Also