Search code examples
peoplesoft

Change column label on grid (PeopleSoft)


I'm having problems changing the label of a column on a PeopleSoft grid.

I have this code on the RowInit event of the main record:

Local Grid &Grid;
Local GridColumn &Column;
&Grid = GetGrid(Panel.V91MG_BI_INGMAN, "GRID");
&Column = &Grid.GetColumn("DATO_01");
&Column.Label = "Test";

The grid is composed of a Table record and a Derived/Work record. I need to rename the columns of the Derived record.

This is how the page looks like on designer view:

enter image description here When I test my page, I receive the following message:

enter image description here

I know the grid is being set correctly, as I can change its label using &Grid.Label = "Hi".

Thanks in advance!


Solution

  • Your peoplecode is correct so far. You should move this code to the page activate event.

    Did you set the page field name for this column?

    enter image description here