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 |
Look for AddDropDownListItem or similar function in peoplebooks.
Hi,
Dynamic Prompt will be helpfull to solve this.
1) Create two views ,example:view 1 fetches A,B.view 2 fetches C,D,E
2)Create a Propmt field at record level and set the prompt field as %RECNAME_EDIT
3)In the component prebuild write a query to fetch the appropraite views based on roles assigned for an EE.
example:If EE having manager role assign view 1,if EE having Admin role assign view 2.
sample code:
Below code is to assign approprite view to prompt field based on the Role:
if role=manager then
&rec = GetLevel0()(1).GetRecord(Record."Record which has Prompt field");
&rec.setedittable("%RECNAME_EDIT", @("RECORD." | "view1"));
else
&rec = GetLevel0()(1).GetRecord(Record."Record which has Prompt field");
&rec.setedittable("%RECNAME_EDIT", @("RECORD." | "view2"));
similarly assign the view based on the roles.