web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Restrict entry of particular financial dimension on dialog form

(1) ShareShare
ReportReport
Posted on by 628
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?  
  • Suggested answer
    Martin Dráb Profile Picture
    240,762 Most Valuable Professional on at
    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.
  • CU29041349-0 Profile Picture
    628 on at
    Hi Martin,
    I guess I don't understand how the controller classes manage the individual dimensions. This is what I've glean from HcmDimensionEntryController.
     
    Create MyDimensionEntryController extending LedgerDefaultDimensionEntryController
    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. 
     

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 430 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 368

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 364 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans