|
On the Add page you might want to prepopulate some edit boxes
with recently used values. This can be done using combination of
Default values and BeforeAdd Event.
Let's say at the end of day you need to enter several data
records for each Employee. To prepopulate Date and Employee fields
with last entered values you need to the following:
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")
|
|