Hello Paul,
I have a similar workflow where I do what you are describing. I've done this by using the following code in the Form Initialization Code.
// Temporary array to hold values being passed to form.
var arr = [];
// Iterates through an array and places values into a value map
for ( var i = 0; i < Process.resourceArr.length; i++) {
var rea = newValueMap();
rea.resource = Process.resourceArr[i];
rea.description = Process.descriptionArr[i];
arr.push(rea);
}
// Assigns the temporary array to the table element and populates
Form.resourceMatrix = arr;
Hopefully this helps
Brian