Friday 10 January 2014

Difference Element and this in ax 2012

Element & this :-
1.       "this" can be used in any objects to reference the current object and member methods.
2.       MorphX forms and reports are composite objects.
3.       In forms the collection of objects is contained within a FormRun object. You can reference members in the outer FormRun object by using the "element" reference.
4.       If your code is placed at the top level there are no functional difference between "this" and "element". 
5.    If your code is placed in a FormDataSource "this" will reference the datasource but "element" will reference the "FormRun".
5.      

No comments:

Post a Comment