Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to set value to an unbound Dimension entry control through code or using a display method?

Posted on by 100

I need to add an unbound dimension entry control to a form.

Lets say my form data source is TableA and if TableA has a one to one relationship with TableB and TableB has one to one relationship with TableC. On TableC I had a DefaultDimension field. I need to show this corresponding Dimesion value for each record of TableA. So I am adding a new dimension entry control and trying to set the value for it on datasource active method, but I don't see a method to actually set the value. Also I don't see any property on the control to accept a display method.

Can anyone suggest me on this, Thanks in advance.

  • Verified answer
    JayVee13 Profile Picture
    JayVee13 100 on at
    RE: How to set value to an unbound Dimension entry control through code or using a display method?

    I was unable to find any way how this can be achieved, so I added a temp table with Default Dimension field to the form and used this field as data field property to the dimension control and has set the value to the field in form init

  • JayVee13 Profile Picture
    JayVee13 100 on at
    RE: How to set value to an unbound Dimension entry control through code or using a display method?

    Hi, Thanks for the reply. The above thread refers to a bound control, but in my case it is an unbound control and I don't see any method in the control to set the value through code.

  • huijij Profile Picture
    huijij 19,811 on at
    RE: How to set value to an unbound Dimension entry control through code or using a display method?

    Hi JayVee,

    Please refer to the old thread to see if it helps:

    community.dynamics.com/.../dimension-entry-control-values

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans