I recently had to do something similar. What I did was to create the table and another, hidden field on the IRF. In the process that called the IRF, I converted my data to a JSON object, and converted the JSON object to a string with the "stringifyJSON" function. In the form data initialization code, I assign the JSON string to the hidden field.
Finally, in the IRF Script section, I created this function:
{
load_table: function() {
grc_json = ca_pam_convertJSONToJSObject(ca_pam_getTextFieldValue('Form.grc_data_json'));
ca_pam_setTableDataFromJSObject('Form.grc_updates', grc_json);
}
}
The IRF's onLoad trigger calls this function.
Regards,
Bil