Hi everyone,
I got the following error while trying to run a form :
Employee No. " does not exist
I tried to debug the C/AL code, the error seems to be in this line:
Employee.GET(GETFILTER("Employee No."));
I checked the Employee table, the Employee No. already exists in the table....
What should I do???
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
IF GETFILTER("Employee No.") <> '' THEN
Employee.GET(GETFILTER("Employee No."));
However, I suggest, you find out why the filter on "Employee No." field is not set, when it is expected to be.
Chn
Yes I did, same error message...
Either you have it in place where record is not get like OnOpen or the employee code is blank in record..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The code is in the trigger OnOpenForm()...
I checked, the employee code is not blank...
So, what should I do???
you have to shift the code to OnAfterGetRecord..
to check simply add
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Pargesoft