Hi!
After the latest scriptcase update, the “group by” on grids option fails with ad hoc created fields used on grid totals or summary totals.
I load these fields on the onRecord event using sc_lookup:
$sql="SELECT state, count(*), COALESCE( SUM( ROUND( weight::numeric, 1)), 0) FROM...";
sc_lookup(dataset,$sql);
$state= {dataset[0][0]};
{count}= {dataset[0][1]};
{weight}= {dataset[0][2]};
As you can see, all of these fields values are always >= 0
The error message that I get is: “Error: Cannot assign an empty string to a string offset”.
This was fully working until the last update.
Could you fix it, pleased
Thanks…