[SOLVED] sc_set_groupby_rule not working

Hi,

I’m using SC 7.01.0007. I have following code in a grid application’s onApplicationInit as described in the manual.

sc_set_groupby_rule("corp");

Initial module is “Summary” and “corp” is defined in application’s Group By Rules.
When I run the application I get this error:

Undefined index: SC_Ind_Groupby

and

Fatal error: Function name must be a string in…

.

Try in onApplicationInit: sc_set_groupby_rule = “corp”;

See documentation (ScriptCase Macros) for that.

Ohh it’s my fault. Thank you for the information.