AX7 Steps to create a new form

In this post will follow the same model and project to create new elements for building Simple List form. 
In order to construct Simple List form in AX7, we will first create a table that will be populated from the form and use as data source of the form.
To create a new table, first add new item to the project.
After clicking new item, it will open the AX7 Artifacts. Select Data model from the left pane and table from the list of artifacts. Give appropriate name to your table. 
  
Table is created now new fields can be added either by dropping EDT's over field node or right click and create new fields. Add fields that are required on the form. These steps are mostly same as in earlier versions of AX. 
New index can also be created in same way. I have created 'Non duplicate' index in my table after adding table fields. 
Next is to create the form again by adding new item in the project. This time we need to select User interface from left pane and select form artifact from the list.
Give name to the form and select add. This will add new form to the project. Now the important thing is to apply pattern to the design. It can be done by right clicking the design node of the form and navigate to Apply pattern -> Simple List (As we are building Simple list form so i have selected this pattern, choose patterns you like to add on forms design). 
After applying the pattern, you can see it automatically gives you the pattern of design which needs to be completed in order to build form design. Make sure there is no missing control on the from design otherwise your project will not be build successfully. New controls can be added by right clicking on design node, hover to new and select appropriate control from the list. 
For Simple List form, we need to add following controls on it:
1. Action pane and Action pane Tab
After adding action pane and tab, we also need to add command buttons of ADD and DELETE same as we   do in earlier versions. 
2. Custom Filter Group
Custom Filter group needs to be added on this form to filter the form data. One issue i faced while adding custom group on design is that we also need to apply sub Patterns on it otherwise it wont work. Patterns can be applied in same  way as we did on design node.  
   
3. Finally we need  a grid control on the form to display, edit and insert data on the form. 
So after adding all controls we can see that pattern shows no missing control.
As form also need some data source, so we will drag and drop the table created earlier on form data source.
Now select the fields from the data source and drop them to the grid. 
This completes our table and form creation
In order to show above form in Fleet management area page, we need to create a display menu item of the form. Follow the same steps we did for form creation just need to select Display Menu Item artifact from list.
Finally add this menu item to Fleet management area page. This can be done by extending the Fleet management Menu. Right click the Fleet management Menu from fleet management model under User interface-> Menus and click on create extension. This will create extension of Fleet Management Menu. 
Now add the menu item within setup region of this menu.
This completes our implementation. In last you need to perform two steps:
1. Build your project in order to compile the new package.
2.  Synchronize project with database (this is important otherwise you will get sql errors on form).
Now Navigate to Fleet management -> Setup -> Vehicle Category
Here is the basic simple list form.
This is basic tutorial so i hope everyone get basic insight of AX7.

AX 7 Development Steps

This blog will show how you can start making a customization in AX 7 by showing you the steps needed to make a simple script
Before starting customizing AX it is recommended to create your own Model
  • The first step is to log into Visual Studio as an Adminstrator
Dev1
Once within Visual Studio, go to the AX7 menu and select Model Management and ‘Create model’. A model is not exactly the same as a layer, but it might be a useful analogy to think of it as being similar to a layer in the sense, it is a way to isolate and manage your customizations
Dev2
Create the model in the form that appears and fill out the fields as appropriate

Dev3
Click ‘Next’ and select ‘Existing package’ and choose ‘Application Suite’

Dev4
Press ‘Next’ – accept the default values suggested and press ‘Finish’


Dev5
In the ‘Save’ screen that appears, select the project DynamicsAX7 and give it a name of your choice and press ‘OK’
Dev6
Notice in the Solution Explorer to the right in the screen a new Project has been created in your newly created Model

Dev7
On the Solution Explorer go to the project and rightclick and select ‘Properties’
Dev8
In here note that the project is in the new Model just created and that the customizations will be saved in the ‘USR’ layer
Dev9
Also, it’s a good idea to specify which company you wish to execute the code in, here ‘DEMF’
Press OK
 Now to add ‘Runnable Class(Job) to the Project do the following. On the project rightclick and select ‘Add’ and then select ‘New Item’
Dev10

In the screen shat appears select ‘Code’ and then ‘Runable Class(Job)’
Dev11
And press ‘Add’
Note that now in the Solution explorer that the Runable Class has been added
Dev12
Doubleclick on the ‘Runable class’ and enter the code editor window and give your job a meaningful name and write your code like you would do any X++ job as known in previous versions
dev12B
Save the project(Ctrl + S) and to compile the job, select ‘Build’ and ‘Build Solution’ from the toolbar
Dev13b

Wait until the output window reports that the build has completed
Dev14


Now in order to run the job, you need to set it as a ‘Startup Object’
Go to the Solution Explorer and on the Job, righclick and select ‘set as Startup Object’
Dev15
Now to execute the job, select ‘Debug’ in the toolbar and then ‘Start without Debugging’
Dev16
And note the output in the browser
DevFinalOutput
And that’s it. Happy AX7 developing !

Install and Configure Zpl Printer on D365 F&O

  Setup Zpl Printer On D365 F&O Posted on Recently, I have had an opportunity review the possibilities to print license plates within D3...