I'm making a Project Management System. In the project, when the Project Manager wants to select a project leader and team members , he gets the name of the employees in the look-up list which is fetched from the employee master table. Now, when he selects his resource list , if he selects a particular resource as a project leader in the 1st row of the grid , he should not be able to select any other resource as project leader.
Since, there can be only 1 project leader for a particular project.
However, its okay if he selects multiple team members ..
P.S. : Project Leader / Team Member is fetched from another field called employee role which contains these two translate values.
Please help, a bit urgent.
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 |
Say, you have a field called ROLE_TYPE and Manager selects "Project Leader" value on this field for a particular row, what you need to do is to check (using ROLE_TYPE Field Edit PeopleCode of course) if there is any "Project Leader" in the list already. You can do this by traversing through the rowset and checking the ROLE_TYPE for each and every row.
Well, I know the concept .. I'm just struggling with writing the code .. Can you help me out with the coding part .. I even realize &rowset.ActiveRowCount has to be used, just not able to execute it ..
Be Jealous!
Here it is..
Local rowset &Level1;
&Level1= GetLevel0()(1).GetRowset(Scroll.MYSCROLLRECORD);
For &I = 1 to &Level1.ActiveRowCount
&Level1.GetRow(&I).GetRecord(Record.MYRECORD).GetField(Field.MYFIELDNAME).DisplayOnly = False;
End-For;