Explanation of common axapta system ARGs () Methods

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.