The requirement is to restrict access to account schedule whereby users will be granted access to specific account schedule.
Hence, a new table (Acc Shedule By User) was designed with the following fields
Now, we want to filter the Page 103 - Account Schedule Names so that only the list where the user have accessed is displayed.
We have put the following code on both onOpenPage and OnAfterGetrecord but unfortunately no filtering is being done:
IF AccSchedulebyUser."Acc. Schedule Name" <>'' THEN
AccSchedulebyUser.SETRANGE(AccSchedulebyUser."User ID",USERID);
SETRANGE(Name, AccSchedulebyUser."Acc. Schedule Name")
Would you please inform how the filtering can be done? Thanks for you input