Axaptapedia is now maintained by AgileCadence For more information please click here.

Difference between revisions of "Create Project through Tool"

From Axaptapedia
Jump to: navigation, search
Line 10: Line 10:
  
 
== '''Step One :''' ==
 
== '''Step One :''' ==
  First step is to download project XPO and import it to your environment .This XPO works only with Ax2012.
+
First step is to download project XPO and import it to your environment .This XPO works only with Ax2012.
  
  
 
== '''Step Two''' ==
 
== '''Step Two''' ==
  Compile the project and make sure that there are no errors. After, importing successfully you can see the project AOT as shown below.  
+
Compile the project and make sure that there are no errors. After, importing successfully you can see the project AOT as shown below.  
  
 
== '''Creation of project''' ==
 
== '''Creation of project''' ==
Line 21: Line 21:
  
 
== '''Fetching list of child classes for a given class''' ==
 
== '''Fetching list of child classes for a given class''' ==
    In Ax2012 there is a class “SysDictClass”, it has a method “implementedby” we use this method to get the list of all implemented classes i.e. child classes.
+
In Ax2012 there is a class “SysDictClass”, it has a method “implementedby” we use this method to get the list of all implemented classes i.e. child classes.
  
 
== '''Adding classes to the project''' ==
 
== '''Adding classes to the project''' ==
    Using list iterator we add this classes to the project using method “addClass2Project” of class “PksCreateProjectDataContract”.
+
Using list iterator we add this classes to the project using method “addClass2Project” of class “PksCreateProjectDataContract”.
  
 
== '''Opening project through code''' ==
 
== '''Opening project through code''' ==
 
Opening project through code is simple task which is done by using method “openProject” of class “PksCreateProjectDataContract”.
 
Opening project through code is simple task which is done by using method “openProject” of class “PksCreateProjectDataContract”.
  
    When user runs the project a dialog pops-up asking for class name. “PksCreateProjectDataContract” is the class which User Interface (dialog) which is shown and also holds the input data given by End User. This data is given to the “PksCreateProjectController” class which will do further operation.
+
When user runs the project a dialog pops-up asking for class name. “PksCreateProjectDataContract” is the class which User Interface (dialog) which is shown and also holds the input data given by End User. This data is given to the “PksCreateProjectController” class which will do further operation.

Revision as of 17:28, 22 August 2013

Create Project through Tool

The project XPO has four main functionalities: 1) Creation of project 2) Fetching list of child classes for a given class 3) Adding classes to the project 4) Opening project through code

Download XPO

Step One :

First step is to download project XPO and import it to your environment .This XPO works only with Ax2012.


Step Two

Compile the project and make sure that there are no errors. After, importing successfully you can see the project AOT as shown below.

Creation of project

“PksCreateProjectDataContract” has a method “findorCreateProject” it takes project name as input parameter and returns ProjectNode

Fetching list of child classes for a given class

In Ax2012 there is a class “SysDictClass”, it has a method “implementedby” we use this method to get the list of all implemented classes i.e. child classes.

Adding classes to the project

Using list iterator we add this classes to the project using method “addClass2Project” of class “PksCreateProjectDataContract”.

Opening project through code

Opening project through code is simple task which is done by using method “openProject” of class “PksCreateProjectDataContract”.

When user runs the project a dialog pops-up asking for class name. “PksCreateProjectDataContract” is the class which User Interface (dialog) which is shown and also holds the input data given by End User. This data is given to the “PksCreateProjectController” class which will do further operation.