Friday, October 17, 2008

initParmDefault()

Just to remember: if you want to set up some value to a field on a dialog by default you should override standard method initParmDefault().

First time, AX takes it as a value, then it saves and restores the values the user input in the dialog form.

To see how it works just override this method for the class TestDemoRunBaseBacth as the following:
public void initParmDefault()
{
super();

i=11;
}
All values saved by Pack()method can be seen in Usage Data form: Tools\Options\Usage Data [Jobs - for classes]




No comments: