| Title | Under | Posted on |
|---|---|---|
| Required Peoplesoft HRMS Functional Training | PeopleSoft Functional | 05/07/2013 - 10:29pm |
| Error while saving Voucher | PeopleSoft Functional | 05/02/2013 - 1:55am |
| santosh asking que | PeopleSoft Technical | 04/30/2013 - 10:22am |
| How can i implement Email functionality to alerts in peoplesoft. | PeopleSoft Technical | 04/30/2013 - 5:01am |
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.