Hi guys,
I would like to share the solution to the error which came up with me while developing a report. It is quite a silly mistake which beginners like us make often.
Solution : Go back to the C/AL code and look up that you must have typed a wrong GET statement there.
In my situation, I was doing
SalesHeader.GET("Sales Line"."Document No."); //Wrong GET
which resulted in 'The type NavOption is unknown.' error.
I corrected my code and wrote,
SalesHeader.GET("Sales Line"."Document Type","Sales Line"."Document No."); //Correct GET
And this issue was resolved. Hope you will find this useful.
Cheers!
Ishwar
I would like to share the solution to the error which came up with me while developing a report. It is quite a silly mistake which beginners like us make often.
In my situation, I was doing
SalesHeader.GET("Sales Line"."Document No."); //Wrong GET
which resulted in 'The type NavOption is unknown.' error.
I corrected my code and wrote,
SalesHeader.GET("Sales Line"."Document Type","Sales Line"."Document No."); //Correct GET
And this issue was resolved. Hope you will find this useful.
Cheers!
Ishwar