Hi All,
Whenever I click on Absence Registration action on Employee List page, following error is shown :-
There is no Employee within the filter.
Could anyone please suggest the cause of this and how to fix it.
Thanks !
Hi All,
Whenever I click on Absence Registration action on Employee List page, following error is shown :-
There is no Employee within the filter.
Could anyone please suggest the cause of this and how to fix it.
Thanks !
Hi
You can use the IF condition when you use the FindFirst or FindLast or FindSet function to avoid the error. This error usually occurs when there are no records within the filters that you have applied.
Like: If employeeTbl.FindFirst() then;
Regards
Avinash B
Please fine the source code below :
trigger OnOpenPage()
var
User: Record User;
employeeTbl: Record Employee;
AbsenceRegistrationTbl: Record "Employee Absence";
begin
User.GET(UserSecurityId);
if (User."License Type" = 0) then begin /// User."License Type" = 0 means full user, changes teammember in future
AbsenceRegistrationTbl.Reset();
Clear(AbsenceRegistrationTbl);
employeeTbl.SetFilter("AD user name", UserId);
employeeTbl.FindFirst();
AbsenceRegistrationTbl.SetRange("Employee No.", employeeTbl."No.");
SetTableView(AbsenceRegistrationTbl);
end;
end;
YUN ZHU
290
Super User 2025 Season 1
Mansi Soni
196
Gerardo RenterÃa Ga...
156
Most Valuable Professional