addASITable4ACAPageFlow

Used by page flow scripts to add rows to an ASIT table. You can use this function to dynamically populate an ASIT based on data from earlier pages.

Version

2.0

Parameters

Parameter Type Description
DestinationTable GroupModel appSpecificTable GroupModel ASIT object from the current record in Citizen Access.
tableName string Destination table name.
tableValueArray associative array Array of ASI table values to add.

Example

The following example adds a row to the TBL-DOCREQ table.

var cap = aa.env.getValue("CapModel"); 
var conditionTable = new Array(); 
var c = new Array(); 
c["Document Type"] = new asiTableValObj("Document Type","Document","Y"); 
c["Name"] = new asiTableValObj("Name","Dangerous / Vicious Dog Waiver","Y"); 
conditionTable.push(c); 
asit = cap.getAppSpecificTableGroupModel(); 
new_asit = addASITable4ACAPageFlow(asit,"TBL-DOCREQ", conditionTable);