Based on the Run Button in a Grid Application (Processing Records) tutorial, it define the global variable [total_chked] as a single dimension array at the event oninit -> [total_chked] = array();
For each record selected under the Button -> onRecord, it assign the field “contactname” to the global variable total_chked
[total_chked][$arr]={ContactName};
How can we modify this single dimensional array to multi-dimensional array? My key to the record consist of 4 fields, and I want to capture this 4 fields per record into an array [total_chked] such that at the Button -> onRecord,
$arr=[i];
[total_chked][$arr][0]={Branch};
[total_chked][$arr][1]={MDate};
[total_chked][$arr][2]={Queue};
[total_chked][$arr][3]={seqno};
[i]++;
When I try to retrieve the data from global var [total_chked], I get error message “Cannot use string offset as an array”
$Branch=[total_chked][0][0];
I tried using your example :
$array1 = array(0,0,0);
$array2 = array(0,0,0);
[total_chked] = ($array1,$array2);
but I got the following error message -> Parse error: syntax error, unexpected ‘,’ in grid_application.class.php