Hi all,
I am facing a error message at time of calling a Function. ](*,)
Function Name = GetNeededQty;
Parameters = ProdOrderComp ( Record = Prod. Order Component )
Error Screen msg :
Custom Function :
What is the reason ? Kindly reply. [-o<
Now or Never
0
Answers
No.
I have created this Function in the Report named Prod. Order - Job Card (ID 99000762).
And Calling this function in the Prod. Order Component - OnAfterGetRecord().
Rename the DataItem variable on your report as RecA (or something...)
If you leave the call exactly as is do you get an error that "Prod. Order Component" is not declared?
Error is As it was
If this error occurs in the call to GetNeededQty then it seems that for some reason the caller passes an Option as a parameter, and not a Record.
So my initial question was:
Is there a possibility that there is a field on "Prod. Order Component" table with the name
"Prod. Order Component"? Is there a local or global variable with the name "Prod. Order Component"?
I'm working in Nav 5.0 Sp1 and no field is there with the same name.
This is the Last dataitem of the Report and there is a parameter named ProdOrderComp ( Record = "Prod. Order Component" ) of the function.
The Function is Called everywhere without throwing any compiling error but not in the Prod. Order Component - OnAfterGetRecord().
:-k :-k :-k
This is crucial info.
Could there be a GetNeededQty function with (different parameter) on the "Prod. Order Component" table?
Yes kapamarou. I have found the same before YOU
Thanks for your support. :thumbsup:
Merry Christmas & Happy New Year to all of you.
Merry Christmas