Alvaro VS
Alvaro VS

Reputation: 203

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!

Upvotes: 1

Views: 7611

Answers (2)

Frank Ockenfuss
Frank Ockenfuss

Reputation: 2043

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

Upvotes: 2

Amit
Amit

Reputation: 4330

If you want to change label only you can do same without writing code.

  1. Go to page fields properties.
  2. Select tab 'Label'
  3. Select Text Radio and enter column label.

Image1Image 2

Upvotes: 0

Related Questions