Dialog screen events

Some body may wonder if it is possible to use control’s event methods in dialog just like what we do in the form. For instance, the change of a given dialog control’s value will result in changes in other control’s value.
In Axapta, if you use a class that extends RunBase, it allows you to implement the screen events in dialog.
1. in dialog method
    protected Object dialog(…)
    {
         …
         dialog.allowUpdateOnSelectCtrl(true);
         …
    }

Then, when a control is selected, the runbase.dialogSelectCtrl() method is called.
2. in dialogSelectCtrl method

    public void dialogSelectCtrl()
    {
        super(); 
        //processing here
    }

This entry was posted in Axapta Development. Bookmark the permalink.

Leave a comment