Populates a table with the JavaScript object array.
Specifies the table ID.
Specifies the JavaScript array containing a list of objects. The objects properties must be same as the column name to populate the data.
None.
This example shows how to populate a table from a JavaScript object array. The table ID is Form.name and has two columns as firstName and lastName.
var tableData = new Array();
var data1 = new Object();
data1.firstName = "firstName1";
data1.lastName = "lastName1";
tableData[0] = data1;
var data2 = new Object();
data2.firstName = "firstName2";
data2.lastName = "lastName2";
tableData[1] = data2;
ca_pam_setTableDataFromJSObject('Form.names',tableData );
You can also find this function in the out-of-the-box content in CA Process Automation.
|
Copyright © 2013 CA.
All rights reserved.
|
|