You can use the following common parameters in your event code:
pageObject
GlobalVars.pageObject
an RunnerPage class object that represents a current page. For more information, see RunnerPage class.
Example
var data = pageObject.getCurrentRecord();
MVCFunctions.Echo(String.Format("{0} {1}", data["ID"], data["Field1"]));
values array
values
an array with the field values from an Add/Edit form.
Example
values["Comment"] = "";
Note: If the field was assigned an alias in the SQL query, then the values array gets the alias instead of the field name from the database.
E.g., if you have an SQL query SELECT salesrep_id AS Inv_Salesrep ..., you should use values["Inv_Salesrep"].
keys
keys
an array with the key columns.
Example
values["FileName"] = keys["ID"].ToString() + ".jpg";
Other useful functions and parameters
xt.assign("name", "george smith");
See also: