addASITable

Populates the ASI table with values.

Version

1.6

Parameters

Parameter Type Description
tableName string Name of the ASI table to add to the record.
tableValueArray array of associative arrays Values to populate the table.
capID (optional) CapIDModel Record to add table to.

Notes

tableValueArray is an array of arrays. Each array object within tableValueArray must contain an associative index for each column in the target table.

Example

masterArray = new Array(); 
elementArray = new Array(); 
elementArray[“Table Column 1”] = “Row 1, column 1 Value”; 
elementArray[“Table Column 2”] = “Row 1, column 2 Value”; 
masterArray.push(elementArray); 
addASITable(“table name”,masterArray); 

This example populates the 2-column table with one row.