Contents

 
Home
PHPRunner 6.1 manual
Prev Page Next Page
 
 

Speed up data entry using events

 

On the Add page you might want to populate some edit boxes with previously used values. This can be done using a combination of Default values and BeforeAdd Event.

For example, at the end of day you need to enter several data records for each Employee. To populate the Date and Employee fields with the most recent values, you need to complete the following steps:

1. Set Default values of those fields to $_SESSION["Date"] and $_SESSION["Employee"] respectively. This can be done in "Edit as" settings dialog.

2. Create a BeforeAdd Event and use the following code to save Date and Employee values in Session variables:

$_SESSION["Date"] = $values["Date"];

$_SESSION["Employee"] = $values["Employee"];

Converted from CHM to HTML with chm2web Standard 2.85 (unicode)