Using Model Objects

The master script functions use get and set functions, with the “cap” variable, to retrieve and update information about the current record. Table 1 shows how to get information, from the application specific information table, from a script control.

Table 1. Retrieving the capModel Object Value
# Value Description
01 true ^ asit = cap.getAppSpecificTableGroupModel ();

Table 2 shows how to update information, from the application specific information table, from a script control.

Table 2. Updating the capModel Object Value
# Value Description
01 true ^ cap.setAppSpecificTableGroupModel(asit) ;

Table 3 shows how to pass capModel updates to Citizen Access at the end of your script.

Table 3. Updating the capModel Object in Citizen Access
# Value Description
01 true ^ aa.env.setValue("CapModel",cap) ;