:evil:
how do I do to pass a datum (type number document) from a form to a dataport launched through OnPush? I have written this code:
FORM 51
Menu Items = Importa Telefonia Fissa
Globals = Name DataType Subtype Length
RUNDATAPORT Dataport Importa Telefonia Fissa
<Control- OnPush() = RUNDATAPORT.PassaTestataAcquisti(Rec);
__________________________________________________________
Dataport 50029
Functions = PassaTestataAcquisti
Locals = Var Name DataType Subtype Length
No RecTestataAcquisti Record Testate Acquisti
Codice C/AL
Trigger
PassaTestataAcquisti(RecTestataAcquisti : Record "Testate Acquisti")
TestateAcquisti.SETRANGE("Nr.",RecTestataAcquisti."Nr.");
___________________________________________________________
Quest.
Because after having performed the code of the function in the Dataport he/she returns me to the Form that has called the Dataport?
Is the code correct?
Thanks
0
Comments
In the calling form, you put:
in the dataport:
GLOBAL VARIABLE:recPurchaseHeader : record Purchase Header
in "Purchase Header - OnPreDataItem()"
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Maybe it is unfair to link to this post but I will do so anyway
http://www.mibuso.com/forum/viewtopic.p ... highlight=
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Or escaping from your little baby (like me)
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!