Schedule Consultation

Microsoft Dynamics 365

Adding Symbol Font Icons to a Grid in Dynamics 365 for Finance and Operations, Enterprise Edition

July 9, 2019

Adding a symbol icon on a grid can be a useful way to provide information to end users and to make the information a bit more visually appealing.

To do this, first select a symbol you want from the relevant symbol font, which can be found at the link below. This is also useful to keep track of new and changing symbols in every new version.

https://mbs.microsoft.com/customersource/Global/AX/downloads/hot-fixes/AXSymbolFont

I’ll be using “GreenCheck” and “RedX” for this demonstration, but it will work with all symbols.

dashboard icons

I created a simple form with a DataSource and a grid. I chose LogisticsPostalAddress, which is a base form that we are going to extend.

search dashboard

Add some fields and create a new “Image” control on the grid.

We will now create a display method that can be used from the LogisticsPostalAddress DataSource. We don’t want to overlay the table, we want to extend it. To do this, create a final class with a name that ends in “_Extension”. Decorate it with the “ExtensionOf” attribute so that the compiler can handle it.  We are going to create a display method that returns a container.

Here’s the sample code:

*Author’s Note: AKW is my identifier, so your computer will say something different.

table code

We want to set the properties of the image control now: the DataSource property will be LogisticsPostalAddress, the “Data Method” property will be our display method.

Extension methods are not visible using the drop down, so you use a special syntax with style ExtensionClassName::DisplayMethod. So in this case it will be AKWLogisticsPostalAddress_Extension::AKWGridIcon.

Solution explorer

Now we can run the form, you will see every other row has the different symbol font icons.

Dynamics 365 for Finance and Operation

Featured Resources

All Resources
5-Benefits-of-Working-With-Dynamics-365-Finance-Consultants

5 Benefits of Working With Dynamics 365 Finance Consultants

Read now
10-benefits-of-using-sales-accelerator-in-dynamics-365-sales

10 Benefits of Using Sales Accelerator in Dynamics 365 Sales

Read now

10 Reasons to Consider Microsoft 365 Managed Services

Read now
2023-Year-in-Review-at-Avantiico

2023 Year in Review at Avantiico

Read now
4-Benefits-of-Working-with-Dynamics-365-Supply-Chain-Consultants

4 Benefits of Working with Dynamics 365 Supply Chain Consultants

Read now
5-Important-Ways-to-Stay-Sales-Tax-Compliant

5 Important Ways to Stay Sales Tax Compliant

Read now

Start a Conversation

Schedule a call with one of our experts for tailored advice and Microsoft Solution demos.

Contact us
Personalized form in Microsoft Dynamics 365 for Finance and Operation