dimensionDefaultingController

Dimension Controls in a Dialog for AX7


I’ve received a few questions regarding a post on the AX R&D Yammer group about how to add default dimension controls to a dialog in the new Dynamics AX.  Dialogs are unique in that they often do not have a data source, however there are valid cases to still support the selection of dimensions for batch jobs or other periodic processes.

Financial Dimension Control with no data source


Financial Dimensions in AX6 have been revolutionized, as many of us know.  Adding them to a form is rather simple, given that one of your underlying data sources has a Default Dimension field.  But, what if you were building a form that didn't meet this requirement, or better yet had no data sources at all?  This is where the DimensionDefaultingControllerNoDS class comes in to play.

First thing's first: add the class to your form declaration: