Pages

Thursday 24 July 2014

OOPS meterial in AX 2012 and 2009


1.Class]]
2.Object]]
3.Inheritance]]
4.Polymorphism]]
5.Encapsulation]]

In Dynamics AX, objects are usually created in the base class using a static method called ‘construct'. The construct method usually accepts parameters like table buffers or other types of variables. The construct method acts like an object factory 'producing' objects depending on the input parameters.

You might be asking yourself if isn’t it easier to put all the code in one place? That might be the case if you want to produce code in a hurry. Rest assured, this approach might be faster but it is certainly not better. The reason is simple: if code is written in an unstructured manner, finding and solving bugs is more difficult and quite often results in code that is broken in one place when fixing it in another place. This can also occur when using OOP except that it very easy to avoid if the programmer is aware of this.

This is one of the many pitfalls that OOP helps to solve. With OOP, the code pertaining to a specific purpose is encapsulated in its own class. This means maintaining the code can be done in a specific class only. If the code is changed in a class, sibling classes are not affected but children classes are. If desired, it is simple to propagate code changes to all child classes by changing the code in a single place, the base class. All child classes will automatically inherit the new code.

 1. Class:
In object-oriented programming a class is a programming language construct that contains properties and methods. The properties represent the attributes of an object and the methods represent the actions that an object can perform. A common design pattern is to have a parent class and child classes that specialize the methods of the parent class.

2. Object.

In object-oriented programming an object is an instance of a class   and is created using the new operator. In Dynamics AX a commonly used pattern is the factory method using a static construct method.

3.Inheritance.
In object-oriented programming inheritance means that a class  can inherit properties and methods from another class. This is a powerful feature because code changes in the parent class are propagated to all child classes. The advantage of that is that code only has to be changed in the parent class for the all the child classes to benefit from it.

4.Polymorphism.
Polymorphism is a core concept in oop and goes hand in hand with Inheritance. You can use an object from type of a subclass always like an object from type of a superclass. By example if you create a class that extends RunBaseBatch you can use it always like a RunBaseBatch Object.

 5.Encapsulation.
In object-oriented programming encapsulation means that code that logically belongs together is placed in a single entity, namely a class. Accessing code and modifying class variables is achieved by using public class methods.

Saturday 19 July 2014

Sunday 6 July 2014

Date effectiveness in ax 2012 video

Date effectiveness in ax 2012 video
by clicking the below link date effectiveness in ax 2012 video in ax 2012 video...
https://www.youtube.com/watch?v=OcOGLdPLBRs&feature=youtu.be

Creating Menu and Menu Items in ax 2012 video

Creating  Menu and  Menu Items in ax 2012 video
By clicking the below link we can see all the creation of menus and menu items in the ax 2012 video
https://www.youtube.com/watch?v=SbAyAJ5ZM_Q&feature=youtu.be

Forms with Multiple DataSources in ax 2012 video

 Forms with Multiple DataSources in ax 2012 video
in the below link will show you all about the multiple datasources in the forms
 https://www.youtube.com/watch?v=ZdQsN69_zcw&feature=youtu.be

Forms with Single Data Source in ax 2012

 Forms with Single Data Source in ax 2012

by clicking the below link we can get to know about form with adding datasource

https://www.youtube.com/watch?v=8mtLW9NS5AY&feature=youtu.be

Views concept in ax 2012 video

 Views concept in ax 2012
 by clicking the below link we we can see all about the view concept in the ax 2012 video
https://www.youtube.com/watch?v=NW3jeyBbfM8&feature=youtu.be

Maps concepts in ax 2012

Maps concepts in ax 2012
By clicking the below link we can understand all the concepts about to MAPs in ax 2012
https://www.youtube.com/watch?v=E14tRYVPtRE&feature=youtu.be

Creating a label and label ids in ax 2012 video.

Creating a label and label ids in ax 2012 video
By clicking the below link we can easily understand all the label concepts in ax 2012
https://www.youtube.com/watch?v=UL-Oov1riLM&feature=youtu.be

Creating a model and changing between models in axapta 2012 video

Creating a model and changing between models in axapta 2012 video. providing by santhosh p in the YouTube channel by clicking the below link it will show you the particular video and get full knowledge on your subject .
https://www.youtube.com/watch?v=xiFNPeNC2vI&feature=youtu.be

Changing the layers in ax 2012


By clicking the below link easily we will get to know about the layers and their concepts

https://www.youtube.com/watch?v=UL-Oov1riLM&feature=youtu.be

Exel formate wrong in the report Ax 2012

The format always its take as a stranded but some cases it show like up and down in the excel when we are converting into the excel.
In that case we have to check properties in the design part in visual studio Location property in that top if we adjust it will get clear and print in the correct format.

Thanks
Santhosh P


ssrs report in dynamics ax 2012


Diffrent Type of Joins and Linked Type in AX 2009



Car Table

CarId
ModelYear
CarBrand
Model
Mileage
ModelYear
CarId
CA101
2008
Mahindra
Scorpio
15
2008
CA101
CA102
2009
Suzuki
800
12
2009
CA102
CA103
2007
Hundai
i20
5
2007
CA103
CA104
2007
Toyato
Inova
3
2007
CA104
CA105
2009
BMW

5
2009
CA105
CA106
2010
Benz
AZ12
10
2010
CA106


Rental Table
RentalId
CustAccount
CarId
FromDate
ToDate
ToDate
FromDate
RE101
1104
CA101
10/12/2010
10/29/2010
10/29/2010
10/12/2010
RE102
1102
CA102
11/17/2010
12/14/2010
12/14/2010
11/17/2010
RE103
1203
CA103
11/24/2010
12/15/2010
12/15/2010
11/24/2010
RE104
1301
CA104
12/10/2010
1/5/2011
1/5/2011
12/10/2010
RE105
1304
CA101
1/3/2011
1/18/2011
1/18/2011
1/3/2011
RE108
1303





RE107
1202





RE106
2024
CA103
1/10/2011
1/29/2011
1/29/2011
1/10/2011


Inner Join
Select records from main table that have matching record form join table.

Main table record and join table records are joined together  and show as single record.

Code                                                                                                              

static void JoinExamples(Args _args)                                                                        

{                                                                                  

    CarTable carTable;                                                                        

    RentalTable rentalTable;                                                                           

    ;                                                                              

    while select carTable join rentalTable                                                                              

        order by carTable.CarId                                                                        

        where carTable.CarId == rentalTable.CarId                                                                             

                                                                                   

        {                                                                          

            info(strfmt("Car id is %1 renatla id is %2",carTable.CarId, rentalTable.RentalId));                                                                         

        }                                                                          

}

           
Output