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

Notifications

Announcements

No record found.

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 192
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 .
I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 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
    192 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,827 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans