Group by variable for headers

I have a grid with a single group by field defined.

The functionality displays a new header on change of the group filed, as per spec.

I can use the sc_label () macro to change the value of any header column. I need to change the header label each time there is a new group by value (say I group on product code, I need to change some header to another value).

I would need to identify when the group by value changes, and need to find out where to put the sc_label macro.

Thanks everyone

Lewis

In grids apps there are specific onGroupBy events.
You have to check which SC macros are valid within those events.
Also if you are talking about the groupBy specific headers and not the single column headers, those have some parameters you can tweak.