Posts

Showing posts from September, 2023

Financial dimensions display on form

Image
Financial dimensions is a complex topic since AX 2012, same in D365FO. They can vary for every installation done.  Lately I got a request to display the financial values and that they should also be available to use as filters. I started the task and tried to use the "Add financial dimensions for ODATA" addin. But for some reason I could not make it work and consistently get the error:  The form datasource: 'DimensionSetEntity' is bound to an unsupported entity type As an alternative I did it the old fashioned way, by the means of a view and some code in a helper class.  You will need a helper class which fetches your dimension attributes individually, these will be hard coded as they will not change. Helper class View with methods Add methods as computed fields to view Add view to form Override form datasource Process 1. Create a helper class Name: FinancialDimensionHelper_[YourPostfix] Methods: one for each financial dimension: Code:  private boolean shouldUseRetail