-1

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() )
    {
        // get string parameter
        anyStringValueFromCaller = element.args().parm();

    }
valvore92
  • 317
  • 1
  • 9
  • 24

1 Answers1

2

If the dialog is indeed a form in AOT, you should have no problems using args.record() or args.parm(), you should do as described at How to pass a parameter between two forms in Axapta?

If you are dynamically creating a dialog from x++, well, you are still able to override event methods on controls as described here: Override the event methods on dialog controls in Dynamics AX.

Just one suggestion though: don't you args.parm() unless you really need to, looking at the sample code you posted, it is perfectly ok to use args.record() instead.

Community
  • 1
  • 1