In Dynamics 365 Finance and Operations, developers can use DimensionAttributeSetStorage
to customize the behavior of financial dimensions in form controls. This tutorial shows how to make a particular financial dimension value read-only (e.g., Business Unit) using X++.
🛠️ Scenario
You want to restrict users from editing a specific dimension like Business Unit while allowing edits on the rest. This can be controlled at runtime using parmEditableDimensionSet
.
✅ Final Output
A financial dimension control where "Business Unit" is visible but locked for editing, while other dimensions remain editable.
🧩 Step-by-Step X++ Code (Rewritten with New Buffers)
🧠 Notes:
-
DimensionEntryControlTable
refers to the dimension control used on your form. -
This customization is typically done on the form's
init()
method or inside a controller class. -
Replace "Business Unit" with any other dimension name you want to lock.
0 Comments