i try to do this creating a function in the table and calling this function from the form, but when the table go to the OnInsert, the parameter lose the value passed
When you press F3, Navision creates a new instance of a record, and all internal variables will be initialized. Since the MyFlag variable is a boolean, it will be initialized with its default value of FALSE. If you want to do something with that variable, you will have to write some initialization code in the OnInsert trigger.
Comments
Jan Hoek
Product Developer
Mprise Products B.V.
MyFlag Boolean (Global)
CheckMyFlag(parameter : Boolean)
MyFlag := parameter;
Form 30 Item Card
TableItem Record 27 Item (Global)
Form - OnNewRecord
TableItem.CheckMyFlag(TRUE)
My Problem:
In form 30 I press F3 to create new Item:
1) MyFlag have value TRUE inside function CheckMyFlag
2) MyFlag have value FALSE inside OnInsert() Table 27 Item
Why MyFlag value change to FALSE???
Thanks for all
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC