Now we're going to actually add some C/AL code to some objects we've created for our C/ANDL application.
Let's start with some code in the
Validation triggers of our Table 50005
Volunteer Activity Ledger. When a new record is added to this table, we would like all the fields to be filled in. The description should be copied from the
Volunteer Activity table. We can do that at the time the Volunteer Activity Code is validated. We also want to calculate the number of Volunteer Hours worked times the Points per Hour for the appropriate activity.
The basic logic is defined by the following pseudo-code:
In the Activity Code
GETthe Volunteer Activity record; allow for a ...