A simple Grid application.
A Run Button, “Check The Count”.
onScriptInit:
[i] = 0;
[arr] = array();
onRecord PHP:
$ind = [i];
[arr][$ind] = {_id};
[i]++;
onFinish PHP:
$tot = [i];
echo “The value of i is $tot”;
Check a bunch of items, click the button, and the result is always:
“The value of i is 0”
It’s very strange that onFinish executes, but onRecord does not.