extension pattern in .NET – Decorate the class with attributes

 Consider a simple class hierarchy with an abstract base class and 3 derived classes. A typical implementation of a factory would be a static method on the base class, like this                         Problem: The above pattern is bad in different ways        1. Base classes must have references to the sub classes and that…

4

AX- create Forms using classes

Design AX Forms: 1. Using AOT. (right click AOT>Forms nodes and add a new form. You add controls under ‘Design’ sub node and tables under ‘Data Source’ subnode) OR 2. Using X++ code to dynamically create and display a form.   X++ Dynamic Forms:  1. FORM and FORMRUN classes can be used to create forms…

0

AX – Views – using AOT morphx

Views in Ax : are used to get data from database that is stored in the memory on the layer in which view is instantiated. – are like virtual tables that use fields and rows to represent the data record. – data in a View is not stored as data base object but is dynamically created…

0

Ax – Create Dynamic Query – using X++

 X++ Dynamic Queries: use Query classes to create dynamic queries. How? you need the following classes Query; QueryRun; QueryBuildDataSource; QueryBuildRange; QueryBuildLink CodeSample1: x++ code to dynamically create a query. verify the results in the Infolog.     CodeSample2: will show how to create a node on AOT. In the query example I am showing how to…

1

Ax – Create Static Query – using AOT Morphx

 Queries – a (one) way of retreiving data from the data base. How to get data in AX: 1. Views, 2.Queries  3.Select statement. Why Queries?   helps when ranges or values are not known until run time. Where used?   in forms + reports + places where data is retreived from multiple data sources. How to create?         …

0