How to Disable Grid Column using Page Field Name Peoplecode
How to Disable Grid Column using Page Field Name Peoplecode. You can use disable of grid column using page Field Name for define value and access page field name by Peoplecode of Peoplesoft.
Assuming the grid’s Page Field Name value is “GRID_NAME” and the column’s Page Field Name value is “LINK” , you can use the following code
1 2 3 |
&Grid = GetGrid(Page.MY_PAGE, "GRID_NAME"); &GridColumnName = &Grid.GetColumn("LINK"); &GridColumnName.enabled = False; |
GetGrid(Page.STUD_AD_SP, “ADM_VW”).LINK.Visible = False;
If many requirement about grid such as user want to change column label name by condition automatically. You can coding from below link.
How to Change Grid Column Name of Grid/Scroll level 1 in Peoplecode Dynamically
How to access related field on grid by peoplecode
How to Change Grid Column Name of Grid/Scroll level 1 in Peoplecode