In one of my previous posts; I showed you how to populate a grid
using a record or view and a "where" clause. But, what if you want to
narrow the data on the grid depending on what the customer wants to see.
Example:
Lets say you have a grid that shows PTO balance for your employees. The
page the customer is using have a check box that if checked will narrow
the grid data to only show "Negative" PTO balances. This is how you go
about doing that:
If GRID_RPT_WK.NEGATIVE_BALAN = "Y" Then
&numberOfRows = &RS.ActiveRowCount;
/*loop through the grid data on row at a time*/
For &I = 1 To &numberOfRows
&ptoBalance = FetchValue(Scroll.MGR_ELB_RPT, &I, TL_PTO_WRK.TAFW_PTO);
/*if PTO balance is positive then go ahead and delete the row from the
grid and the component buffer. Note that FlushRow will not delete the
row from the database */
If &ptoBalance > 0 Then
&RS.FlushRow(&I);
End-If;
End-For;
End-If;
| Title | Under | Posted on |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
Comments
Post new comment