Form Templates In Ax 2012

Form Templates in AX 2012

A primary focus in Dynamics AX 2012 was to increase a developer's productivity by automating common tasks. As part of this initiative, a new feature was introduced in Dynamics AX 2012 in the AOT. This is the creation of new forms using form templates. 


If you right click on the form node, you can see an extra option there - New Form from template
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiglvwTfJic_92j58HDLndBRBC_1yydiLAijz34JCXSMrLCtyR7XZpWzBhcrbXsRBhQNebN_AXMXpTzKkkzf2wbwQ-bI6GobCOz1qP3ec3Hm8o0Kvz1ijyX81533h2nKvUEWnMOG9mZVTQ/s400/Dynamics_AX_2012_New_form.png
As seen in the image above, you have an option to create seven different form based on the pre-defined templates, these are
·                  ListPage
·                  DetailsFormMaster
·                  DetailsFormTransaction
·                  SimpleListDetails
·                  SimpleList
·                  TableOfContents
·                  Dialog
·                  DropDialog

Form: redesigned forms – a brand new look in Axapta 2012. 
A form is a window that you open from the Microsoft Dynamics AX client workspace that shows information and enables you to perform actions. 
For example, the following figure shows the form you use to view and enter information about a customer. Notice how the form has tabs, fields, and buttons that you can use to view, update, and perform actions with a customer record. 
Form Templates:

To create a form that implements a design pattern, you use a form template.
The template generates a new form that has the basic structure and components specified by the design pattern.
The template reduces the number of steps that you have to complete to create the new form.

List page: Use the template to create a list page you can use to find, analyze, and performs actions on master data.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigzRqeZFoW2Lxrm3s-JDrOvee0u_3mVehcfJ35Jge071dJ8BCvtaMqURC4HLF8e7iuG2lOyxzbAq7rxA86qyZVWlGM2z-_NupVAFPBaVyKPqaHIYYsRsniHGxYzMBNrx0sDEeRTT3SJB8/s640/listpage.PNG



Example: CustTableListPage To open this form: Under Accounts Receivable, click Common > Customers > All Customers.


DetailsFormMaster(Detail form): Use the template to create a Details form to view, edit, and act on master data.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_8KSX9aQuziQjQJJ1CV6uGGvF8w8b1t7NYara_52-4LY_kLwaR1MUIw2Lc-T52zYxTIl2p9xDcemfiG-wZV5Zrft2M53wv-_oEppBM96Dh8mnP5XS_y68v8eevMURO1mUrCd9auFJBVc/s640/master.PNG



Example: CustTable. To open this form: Under Accounts Receivable, click Common > Customers > All Customers,and then double-click an entry in the list.


DetailsFormTransaction (Details form with lines): Use the template to create details form with lines to view, edit, and act on master data that has line items.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjROEq4tIsD396nNe__-M5jivb8req3cEBB67hetNUoizSJRtWInAAho21B_yKimDOzi0pA34Xn_OnZ8qaZMk5eNl3Tr9MCFSFfPIFfao1D6eWavtBDsXv1OH-wGim67w_QlkqG09Stdk0/s640/trans.PNG



Example: SalesTable. To open this form: Under Accounts Receivable, click Common > Sales Orders > All Sales Orders, and then double-click an entry in the list.


Dialog: Use the template to create a dialog window that provides a response to a question.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfpNqDF4MbmAq2Omxh0rjrVQoKFnBAtaUYX9-zuTDrfcTJ8iGup-P5q4dUFmQqHU6P-p4cpRtODupkv3pjc2uXmURj0iTUfEggh_gV3EEUC6W6-4G3HkSPXzkjQ4IzoGmUGdLADBzDLPk/s400/dialog.PNG



Example: DirPartyQuickCreateForm .To open this form: Under Accounts Receivable, click Common > Customers > All Customers. On the Action pane, in the New group, click Customer.


DropDialog: Use the template to create a drop dialog form to perform an action with data.


Example: HcmWorkerNewWorker. To open this form: Under Human Resources, click Common > Workers > Workers. On the Action pane, in the New group, click Hire New Worker.


Simple List: View, enter, and update records that appear as a list of records in a grid.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfU_gXGPCM0O2q8nqCYHRYnmePDxw7o6m-TNbYnE28gMaqMCPqxX7f__x2ajFDmu5Lxj80SjGVGL4mdS9ZrB8bC8OO2BKgEnlFrA9jIi-cJn31Ee0heDTWUNnpcVSTQJSsg8dHpKkJOuw/s640/simplelist1.PNG



Example: CustGroup. To open this form: Under Accounts Receivable, click Setup > Customers > Customer Groups.


SimpleListDetails: Use the template to create a simple list and details form to view, edit, and act on dependent and reference data.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU5FtUE6EmaEkIepexT9sthvjELWv_PZLMdRWJhJX2ngvtJRKD3JeLEcAikNKSbf5gWIZ09dJ87edntNiqAVq0iD902lJHFYZY1v6FmDSTrLxDSAEQcDilSZioYsOQ3go8s63HQvbtw7E/s640/simplelist.PNG



Example: CustPosting To open this form: Under Accounts Receivable, click Setup > Customer Posting Profiles.


TableOfContents: Use the template to create a table of contents form to view and edit configuration or setup data.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIj-JMpZLaFlyrjqPj9wQGhKqSKeNRrs49jSTrrXGUhbY8VHlb2YURsWqqfFXOv_Ay0MrgqpHR8pOF-ReVg-wIfsWMZGkTFNWpsbgmMQK_crbxxhmouInFsGW1mxfGKbiskbX2FNS8eYo/s640/tableofcontent.PNG



Example: CustParameters To open this form: Under Accounts Receivable, click Setup > Accounts Receivable Parameters.

Components:

Methods: You add or override X++ methods for the form. You can use X++ to customize the appearance and behavior of the form.


Data Sources: You specify the database query, table, or view that the form uses to retrieve the data that appears in the form.


Parts: You add Parts that appear on the form. A Part is a specialized type of control that provides information related to the record that appears in the form. List pages and details forms have a FactBox pane or preview pane where the Parts appear.


Designs: You add the controls that appear on the form to the Design node of the form.



Comments

Popular posts from this blog

Table Methods in Ax 2012

Write/ Read to Excel Sheet

Financial Dimensions in AX 2012