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, ...
Answered

How to make Financial dimension as mandatory with red asterisk on vendTable form

(1) ShareShare
ReportReport
Posted on by 194
Hello Experts,
I need to make Financial dimension as mandatory with red asterisk on vendTable form in D365FO in version 10.0.31 (10.0.1406.58).
Normally on a field we can get this done using personalization however as financial dimension is not a normal control as its DimensionControl so we cant get it done using personalization.
 
Can please guide how I can achieve this using x++ code .
  • Verified answer
    GirishS Profile Picture
    27,845 Moderator on at
    Hi Mitr,
     
    If you want to make the all-dimension field as mandatory - You can write COC for the VendTable form init method and make the "DefaultDimension" field as mandatory as below.
    It won't show us the red asterisk, but it will give you the warning message that dimension must be filled in.
    VendTable_ds.object(fieldNum(VendTable, DefaultDimension)).mandatory(true);
    But I don't think you can make the particular dimension field as mandatory.
     
    Thanks,
    Girish S.
     
     
  • Mitr Profile Picture
    194 on at
    Hello Girish,
    Thank you very much for your response really appreciate it.
    One way it solves my problem.
    Just one confirmation is there no way to set the asterisk and red line around the dimension field ?
     
    One again thank you very much for your response.
     
    Thanks
     
    Varun 
  • Verified answer
    GirishS Profile Picture
    27,845 Moderator on at
    Since the dimension control is built at runtime - Asterisk symbol is hard to set as it will relate multiple controls mapped to the one field.
    I cannot say it's impossible, but you need to do R&D to somehow loop through all the financial dimension controls and set the mandatory.
     
    Thanks,
    Girish S.

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

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 217

#3
Subra Profile Picture

Subra 200 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans