Step by step how to create tiles on the D365

Description:-

Step-1: Tile is a new element in form design in latest version of Dynamics AX. As with tiles at other places in Microsoft products, it is used to provide key information on dashboard with or without graphical image. Tile also have drill down functionality to go to an item which have detailed information about the topic.

In this walkthrough, I’ll create a simple counting tile which displays the number of record in a table
As a pre-requisite, I have a simple table “dev_TilesExample” with two string fields – ID and Description.


Firstly, create a query based upon this table. I have set the Dynamics field property to ‘Yes’.
Add new DataSource in the DataSource node and set the below properties in the added datasource.


Secondly, create a new form which displays the record of this table in the grid. This can be a normal form which is used upon drill-down. I have used the same query as data source to this form.
After add new datasource in the datasource node and set the table property “dev_TilesExample”.

 

After add the design in the form. Right click on the Design|Pattern after over the Apply pattern and select Simple List design from the list.


After that you can see you form design layout in the below (pattern) panel.

After that click on the design|Pattern and over New and select the Action Pane from the list.


After that click on the design|Pattern and over New and select the Group from the list.

 

After that select the added group (FromGroupControls1) and right click on it over apply pattern and select custom and quick filters.

 

After again right click on the Group (FromGroupControls1) control and over new then select the QuickFilter from the list.

 

After that right click on the Design|Pattern and over New then select the Grid from the list.

 

In the below pattern pane you can see there no controls missing to add.

 

Now drag and Fields from the DataSource to form Grid.

 

Now create display menu item for form like below.



After change the Display menu item property like object, Query and label.
Third step, create a display menu item for this form. Key point is to mention query property in this menu item to the query already created for tile.



Set the startup object and build you project and run it. Here is how this form looks like in UI.
Make sure there is some data in the table/form, in order to generate valid count in tile.

 

Fourth step, create a new tile. Mention the label, name of display menu item (created above), menu item type and ‘Type’ property to ‘Count’. Leave ‘Query’ property blank.

 

Like below image.

 

Lastly, create a form which will hold this tile. Create a new ‘Tile button’ and point to the tile.

 

After add the Group Control in the design and in the group control add the TileButton like below image.

 

Now hold the TileButton and assign the below property to TileButton.

 

To open this form, you may create other menu item, add it to menu etc. I am just setting this form as ‘Startup object’ in VS to open it. And below is the result.

 

And assign the Object property to previously created Tiles form.

 

Now build the solution and run the project you’re tiles form will look like below.

 

Clicking on the tile will take me to the ‘dev_TilesExampleForm’ form; which shows the four records.

 

I hope that this simple walk through will enable you to try this new form element and implement more complex scenarios.

Related Posts

Previous
Next Post »

Thanks for comments.....