Skip to main content

Notifications

Community site session details

Community site session details

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

create modified method on Business unit filed in financial dimension tab

(0) ShareShare
ReportReport
Posted on by 304

Hi,

In sales table form when I edit sales order, I can't find the financial dimension tab and design, to be more specific the fields displayed in the form doesn't exist as fields in the design from inside.. I need to control this fields to make a modified method on Business Unit filed.

any thoughts?

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,091 on at
    RE: create modified method on Business unit filed in financial dimension tab

    Hi KareemTaima,

    If you want to catch a moment when a certain dimension value was changed on a form:

    You can try to create a delegate in DimensionDefaultControllerBase.setDimensionAttributeValue and subscribe to it in the form dynamically, so you will be notified when the value in dimension control was changed.

    http://axhelper.com/?p=1932

    Or

    You can create a child class from DimensionDefaultingController and use it in the form instead of DimensionDefaultingController. In child class, you can override method setDimensionAttributeValue and call methods from caller form via (formRun.myMethod).

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: create modified method on Business unit filed in financial dimension tab

    My mistake.

    Changing dimensions is taken care of by this code in SalesTable/DataSources/SalesTable/write -

    dimensionDefaultingControllerTable.writing();

    You can try to put your code here checking if DefaultDimension value has changed.

  • KareemTaima Profile Picture
    304 on at
    RE: create modified method on Business unit filed in financial dimension tab

    Finaincial dimension tab doesn't have default dimension filed so there's no modification happen on this field

    I tried the modified method on the data source for Default Dimension no thing happen

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: create modified method on Business unit filed in financial dimension tab

    Hi Kareem,

    The financial dimensions are derived from SalesTable\DefaultDimension field for header and SalesLine\DefaultDimension for lines.

    You will need to write your logic on the modified method for this field either at the form level or modify the SalesTable\modifiedField for executing your logic.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans