Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Grid Row Javascript API > Methods

Grid Row Javascript API: row.setFieldValue()

Scroll Prev Next More

 

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()

Insert custom button

Tri-part events

Click actions

About Grid Row JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software