In this post, we will see how we can add and display financial dimensions on form in D365FO.
At very first we need to add a new field in table with EDT ‘DimensionDefault’ . Or simply we can drag and drop this EDT in table fields and it will ask for foreign key relations to be added. We have to select ‘Yes’.
It will create a Recid relation of DimensionAttributeValueSet table with this newly added field.

Once the field is added in table, we need to restore form data source so that we can see newly added field on form. Now, to display the dimensions we need to have ‘Dimension entry control’ on form. So create a new tab page on form and apply pattern as below-

And now drag and drop newly added field under this tab page from form data source.

After adding field on form we need to set few important properties for this field-
Controller class- It determines how should our dimension entry control behave. In our case we are using ‘LedgerDefaultDimensionEntryController‘ class.
Value Data Field- We need to select that field here to which the dimension entry control should bound. So in this case we can select out newly created field.
Data Source- Select the data source.

Build and sync the project and reload the AX page.
And we are able to see dimension set added on our newly created tab page!

No comments:
Post a Comment