Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Table events > Add page

Process record values

Scroll Prev Next More

Description

The ProcessValues<PageName> event is executed before the record is displayed. Use this event to modify the displayed field values.

Syntax

public XVar ProcessValues<PageName>(dynamic values, dynamic pageObject)

Arguments

values

an array of values to be written to the database. To access a specific field value, use values["FieldName"].

Note: Field names are case-sensitive. If the field name is PlayerId, you should use values["PlayerId"]. Note that values["playerid"] or values["PlayerID"] will not work.

 

 

pageObject

an object representing the current page. For more information, see RunnerPage class.

Return value

No return value.

Applies to pages

View, Add, Edit.

Example

Display an empty "Comment" field when the user edits a record:

 

values["Comment"]="";

See also:

Choose pages screen

About SQLQuery class

About SQLQuery screen

Additional WHERE tabs

JavaScript API: RunnerPage object

Send email with new data

Hide empty fields on the View page

Store the date and time when a record is modified

Grid Row Javascript API: row.getFieldValue()

Grid Row JavaScript API: row.setFieldValue()