Explanation of common axapta system ARGs () Methods
ARGs () is the best system class used by axapta to pass parameters. The most common transmission of parameters includes mutual transmission from forms to classes and transmission from forms to reports, transfer from class to report.
1) ARGs (). Caller () can be used to obtain information of the caller. For example, if a report is called through the class callaaa, you can use callaaa = element. args. Caller (); in the report to obtain the reference of the call class, so that you can use the method in the reference class.
2) ARGs (). Record () can be used to obtain caller data records. This is often used for passing parameters from a form to a class or report. In this case, the value of the data record specified by the mouse of the data source specified by meunitem in the form is obtained. (The language is the worst and cannot be expressed. There are too many "" characters to understand. ^_^)
3) ARGs (). parmenum () can be used to obtain values of the enumeration type. For example, we often set the required attribute value in the enumparameter attribute of menu item, and then use ARGs () in the caller (). parmenum () to get the set attribute value.
4) ARGs (). parm () can be used to obtain the attribute value set by parameters. It can be used to transmit some string parameters to some places.
5) ARGs (). parmenumtype () can be used to pass an enumeration type.
6) ARGs (). parmobject () can be used to pass an object. In axapta, the object has a wide range. For example, a form or a class can be viewed as an object, or, after some data is encapsulated into some System Classes, parmobject () will pass the encapsulated data together when passing this class.