This post is machine-translated. The original post in german language can be found here.
These post applies to following version:
Dynamics AX 2012
Dynamics AX 2012
|
|
|
|
|
|
|
This post is machine-translated. The original post in german language can be found here.
These post applies to following version:
Dynamics AX 2012
|
If you need to run a function - implemented by using the SysOperation-Framework - by code, the following job can show you how you can do this.
In the above shown example, the data from SysLastValue is used. So the last value are read out and written back to the last value of the current logged on user after the job has finsihed. So the next time the user calls the function "normally" by using a menu item which points to a controller-class, the data entered in the above job will be suggested.
To avoid this, you have to tell the controller-class not to use the last value. This can be archived by one line.
If you want to call a function without opening a dialog, you can used the follwing example. It's importand to disabled the use of the last value now, because otherwise there will be no dialog when the user opens the function "normally" by using a menu item.