The parameter is passed as local variable (OnRun parameter with name Rec ;-)). If you need the values in other functions, you need to pass it to them or save it into global variable.
DO not use the Rec name in your procedure or add WITH Rec do begin... in start of your procedure. The Rec in OnRun is handled in this way but implicitly, in custom procedure it is not working in this way...
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
But when on my new triggers nothing appears.
that's sound strange.
Thanks
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
i created a trigger :
myOnRun(Var Rec : "Table_XXX")
copy/past all codes from the OnRun triggers.made some change.
But when i tried to compile the codeunit an error occurs : it does not recognize the fields of my table.
i noticed that this field are available on the OnRun trigger but not on myOnRun triggers ?
is there somthing that i'm missing here ??
thanks for your help
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
it's the only way to do it.