Greetings,
I need to know the syntax for addRows to a CDORowSet from a Jscript array of arrays.
This is the jscript array:
var arrTotal= new Array('open','closed','hist_open','hist_closed','wk_strt','wk_end');
arrTotal['open'] = new Array();
arrTotal['closed'] = new Array();
arrTotal['hist_open'] = new Array();
arrTotal['hist_closed'] = new Array();
arrTotal['wk_strt'] = new Array();
arrTotal['wk_end'] = new Array();
Have used response.write lines to verify array data.
This is my attempt:
oCDORowSet.AddRows(arrTotal);
This is error reported:
Error Type:
CrystalDataObject.CrystalComObject (0x80020005)
Type Mismatch in Parameter. Must be an array object
Any assistance greatly appreciated.
I need to know the syntax for addRows to a CDORowSet from a Jscript array of arrays.
This is the jscript array:
var arrTotal= new Array('open','closed','hist_open','hist_closed','wk_strt','wk_end');
arrTotal['open'] = new Array();
arrTotal['closed'] = new Array();
arrTotal['hist_open'] = new Array();
arrTotal['hist_closed'] = new Array();
arrTotal['wk_strt'] = new Array();
arrTotal['wk_end'] = new Array();
Have used response.write lines to verify array data.
This is my attempt:
oCDORowSet.AddRows(arrTotal);
This is error reported:
Error Type:
CrystalDataObject.CrystalComObject (0x80020005)
Type Mismatch in Parameter. Must be an array object
Any assistance greatly appreciated.