EVALUATION FUNCTIONS EXERCISES
Exercise 1: Evaluation functions
In this exercise you will use the load() function to create local variables to reduce queries and
save data. Add a checkbox to indicate if the part is still covered by its warranty.
Update your interface to include a local variable to query the vehicle parts (there should be a
database table of vehicle parts in your environment already) and to add the warranty checkbox.
The interface should adhere to the following guidelines.
1. Create a local variable called local!parts to query the database to populate the choice
labels and choice values for the dropdown field
2. Create a blank local variable called local!warranty
3. Add a checkbox component to indicate the repair cost is under warranty or not.
a. Make the label null
b. Select “Hidden” as the label position
c. Give only one choice label
d. Make the choice value true
e. Save the checkbox to the local!warranty variable
4. If there is a warranty, disable the repair cost field and change the repair cost value to
zero, using a!save.