Contact Me

Total Pageviews

Saturday 20 September 2014

Difference between "Element and This" keyword in AX

Element and This points to the same object in some cases and different in other cases.
In a form method element and this are same and will point to fromRun object, but in the formDataSource method element still points to the formRun object and this points to the formDataSource object.  You cannot use element to refer table or class object.
 It means if your code is placed in a Form datasource method then "element" will point to "FormRun" object and "this" will point to  the  datasource object.
Happy Daxing:)

No comments:

Post a Comment