Sets the field value on the current page.
The row.setFieldValue() function doesn't change the value in the database, so the adjusted value doesn't appear in the grid. The value set this way only applies to the consequent row.getFieldValue calls.
Syntax
row.setFieldValue(field, value);
Arguments
field
the field name.
value
the field value.
Return value
No return value.
Remarks
The field value set this way does not appear in the grid and only applies to consequent getFieldValue calls.
Example
Let's say we added a Custom button that changes the task status (the 'Status' field) to 'Complete' during the Server event.
In order to avoid reloading the page to get the correct status of the task, we can use the row.SetFieldValue() function in the Client After event for the button:
row.setFieldValue('Status', 'Complete');
See also:
•Grid Row JavaScript API: row.getFieldValue()
•About Grid Row JavaScript API