axapta - How to pass argument from form to dialog? AX -
i created clicked() method in menuitembutton
args args; args = new args(); args.parm(custtable.accountnum); super();
and in dialog run
str anystringvaluefromcaller; ; super(); if( element.args() ) { // string parameter anystringvaluefromcaller = element.args().parm(); }
if dialog indeed form in aot, should have no problems using args.record() or args.parm(), should described @ how pass parameter between 2 forms in axapta?
if dynamically creating dialog x++, well, still able override event methods on controls described here: override event methods on dialog controls in dynamics ax.
just 1 suggestion though: don't args.parm() unless need to, looking @ sample code posted, ok use args.record() instead.
Comments
Post a Comment