I have been working a lot with Grids lately and this is an example on how to hide an "Add" button under the grid so that users can only enter one row.
The comments between the code should explain what I'm trying to do here. But please, don't hesitate to ask if need be!
Local Rowset &RSEthnic;
&RSEthnic = GetLevel0()(1).GetRowset(Scroll.DIVERS_ETHNIC);
/* Check the rows in the grid after the user deletes a row. If a row exists then hide the
add button (user can only enter one Ethnic Group) */
If &RSEthnic.ActiveRowCount = 1 And
All(&RSEthnic.GetRow(1).DIVERS_ETHNIC.ETHNIC_GRP_CD.Value) Then
Hide(HR_LINK_WRK.ADD_PB);
End-If;
/* if no data left in the grid after the user performs a delete, then go ahead and show the
add button so user can add a new Ethnic group*/
If &RSEthnic.ActiveRowCount = 1 And
None(&RSEthnic.GetRow(1).DIVERS_ETHNIC.ETHNIC_GRP_CD.Value) Then
UnHide(HR_LINK_WRK.ADD_PB);
End-If;
Title | Under | Posted on |
---|---|---|
Component interface Error: no rows exist for the specified keys | PeopleSoft Technical | 03/15/2019 - 3:54am |
ADD 24 months starting from current month.(peoplesoft) | PeopleSoft Functional | 07/29/2018 - 8:44pm |
TRC values dropdown | PeopleSoft Technical | 04/04/2018 - 12:54am |
how to find missing sequence in GRID and print the mising sequence number while saving through peoplecode | PeopleSoft Technical | 09/11/2017 - 4:49am |
Recent comments
2 years 17 weeks ago
2 years 22 weeks ago
2 years 22 weeks ago
2 years 23 weeks ago
2 years 24 weeks ago
2 years 24 weeks ago
2 years 26 weeks ago
2 years 28 weeks ago
2 years 31 weeks ago
2 years 37 weeks ago