Hello expert
now i have some problems during I'm upgrading my database from 2009R2 --> 2013
When I used Function PAGE.RUNMODAL(0,..) As Customized Object,
My code is PAGE.RUNMODAL(PAGE::"Magazin Journal Archiv",StoffeBuBlArchiv); ,just simple error
I found error
The error is
Microsoft Dynamics NAV Development Environment
The variable is not a record. 'Variable.Field' is invalid.
OK
But for Standard objects can used this function .I 'm not sure .why this error occur ,please give me any guidance for fixed this problems
Thank in advance.
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Yes, it is a record variable. that already defined.
Where is pointer stopping after pressing ok on error mesage?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The issue was that somebody added Customer as a field to the Contact table and the Customer in Customer."No." was evaluated as that field instead of the Customer in the procedure parameters. And therefore this code stopped with the same error as yours even though I have not touched it at all (we have just added that Customer field to the Contact table). I can therefore imagine e.g. that you might have e.g. field called Page in the default context the code is running or something similar. (I know that RUNMODAL should not be evaluated as field but as function but I am not sure what the error would be in the case where Page was evaluated as field). I would also check broader context of the failing code to see where the naming collision can come from.
Regards,
Igor