Monday, 3 June 2013

Creating an AM


Creating an AM:-  
    • Right click on the Model Project-> Click on New -> Application Module (ADF Business Components->Business Tier)Component -> Click on OK. 
    • On clicking on OK, the View Object creation wizard will be opened which will help you in creating the Application Module, say MyAM.


    • In step 1give the package name as “model.am” (Why? You can refer to the ADF Business component naming standard). 
    • Enter the AM name as MyAM, the display name will be automatically set by the Jdeveloper, however you can change it at any time. 
    • Keep the extends and Property Set field as it is, this for ADF Advanced tutorial, and we are less bother about for it. 
    • Click on Next to the next step.

    • In step 2, shuttle the EmployeeVO earlier created by you to right, to add the VO to the AM. Else you can add the VO to the AM later also. 
    • The View Instance name i.e. “EmployeeVO1” indicates the name that will be exposed to the View Controller layer using the AM.
    • Step 3, AMs can be nested also. For our application we are not going to use nested AM. 
    • If more than one AM are present in the Application then while creating the new AMs existing AMs will be displayed here so that you can nested one AM to another.
  
    • In step 4, you can generate Application Module class and Application Module definition class.
    • Step 5 is a summary of Application Module you are going to create. Just review it and click on Finish to complete the Application Module creation wizard.
 

    • You have created your first Application Module, named as MyAM. You can see it under Model project present in Application Navigator palette as shown below.

No comments:

Post a Comment