@SetField (JavaScript)
Sets a document item associated with the current page to a value.
Defined in
@Functions (JavaScript)Syntax
@SetField(name:string, value:any)
: void
Parameter | Description |
---|---|
name |
Name of an item in the Domino® document bound to the current XPage. |
value |
The new value of the item. |
Usage
After setting the value, this function reloads the current page rendering the new value.Examples
This is the onBlur event of an edit box that is bound to the requestScope variablesubject
.
When the user exits the edit box, its value is used to set the Subject
item of the document associated with the XPage.@SetField("Subject", requestScope.subject)