28.10.2006, 16:40
|
#1
|
Участник
|
Fred Shen: Dialog screen events
Источник: http://fredshen.spaces.live.com/Blog...E4E3!160.entry
==============
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
}

==============
Источник: http://fredshen.spaces.live.com/Blog...E4E3!160.entry
|
|