PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Issue regarding the new PeopleSoft Grid class function - ShowColumns

edited Jun 19, 2015 10:01AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 6 commentsAnswered


Hi

I had a requirement to hide 2 columns (CNTRCT_ID, CNTRCT_LINE_NBR) on a grid when a Page is displayed, and only show them if the Transaction code is "PO".

I found this new peoplecode function ShowColumns. So, I went through the documentation and here's the code:

PageActivate:

Component Grid &grdBLKCF;

&grdBLKCF = GetGrid(Page.NY_RC_BLKFILE_GEN, "NY_BLKFILE_CF");

&showCOL = CreateArrayRept(CreateArrayRept("", 2), 0);
&showCOL.Push(CreateArray("CNTRCT_ID", "N"));
&showCOL.Push(CreateArray("CNTRCT_LINE_NBR", "N"));

&grdBLKCF.ShowColumns(&showCOL);

Comments: The above code worked perfectly fine. The 2 columns were invisible on Page display.

FieldChange:

Component Grid &grdBLKCF;
Local array of array of string &showCOL;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center