We have a custom dialog form with a control attached to HcmEmployment.DefaultDimension. There are four levels in the financial dimension - the last one being Project. I want the user to enter in the first three as required but I do not want them to enter a value for Project. Can that be achieved through code?
Override construct() on MyDimensionEntryController
Override initialize() on MyDimensionEntryController and copy code from HcmDimensionEntryController. Find my 'Project' DimensionAttribute, removed it from DimensionAttributeSetStorage.
There are other parts of HcmDimensionEntryController which I'm not sure is required such as checking isUserSelectedDimensionsEnabled.
Thank you.
Suggested answer
Martin Dráb230,370Most Valuable Professional
on at
Restrict entry of particular financial dimension on dialog form
Notice that the Dimension Entry control has a property called Controller Class. You can implement your own class (inheriting from LedgerDefaultDimensionEntryController) and put such logic there. Look at existing controllers to how to do it, e.g. how parmDimensionsToAllowEdit() is used in HcmDimensionEntryController class.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.