Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to disable a financial dimension on a form

Posted on by 575

Dear All

Actually I want to disable a record based on a property on that record, I used datasource.allowedit() method but it is not disabling the financial dimension, it is disabling all the other fields.

Any help regarding the same?

Thanks and regards,,,

Amr Saad

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to disable a financial dimension on a form - AX 2012

    Hi ManishSaxena

    Thanks, ur suggestion helps me a lot

    Sincerely,

    Enggar

  • ManishSaxena Profile Picture
    ManishSaxena 10 on at
    RE: How to disable a financial dimension on a form - AX 2012

    Hi Amr,

    I am having similar requirement.

    I used

    dimensionDefaultingController.setEditability(false);

    using condition.

    That does the trick :)

  • Shankar.adi Profile Picture
    Shankar.adi 130 on at
    RE: How to disable a financial dimension on a form - AX 2012

    shankardynamicsax.blogspot.ae/.../disable-financial-dimensions-in-ax-2012.html

  • Shankar.adi Profile Picture
    Shankar.adi 130 on at
    RE: How to disable a financial dimension on a form - AX 2012

    Hi,

    Pls. go through the following link.. might be looking for the similar kind of...

    Pls. go through the following link... you might looking for the similar kind of...

    Regards,

    Shankar

  • Xander Vink Profile Picture
    Xander Vink 2,550 on at
    RE: How to disable a financial dimension on a form - AX 2012

    Prisy,

    that solution doesn't work for AX 2012.

    (it does for pre 2012 versions)

  • Suggested answer
    Prisy Profile Picture
    Prisy 10 on at
    RE: How to disable a financial dimension on a form - AX 2012

    I need the same, and here is the solution :D

    //disable dimension 3

    purchLine_ds.object(fieldId2Ext(fieldNum(PurchLine, Dimension), 3)).allowEdit(false);

    Enjoy!!

  • Verified answer
    Xander Vink Profile Picture
    Xander Vink 2,550 on at
    RE: How to disable a financial dimension on a form - AX 2012

    Just take a look at the end of LedgerJournalTable form, method init

    It enables/disables the financial dimensions depending on the access rights.

  • Xander Vink Profile Picture
    Xander Vink 2,550 on at
    RE: How to disable a financial dimension on a form - AX 2012

    Did you specify the (correct) datasource on the dimension controller class and the element where the financial dimensions are shown?

  • Dick Wenning Profile Picture
    Dick Wenning 8,705 on at
    RE: How to disable a financial dimension on a form - AX 2012

    strange, account num + dim fields are stored as an refrecid (default dimension)

    why don't you use account structures? depend on the account number, the correct dimensions are shown.

  • dolee Profile Picture
    dolee 11,279 on at
    RE: How to disable a financial dimension on a form - AX 2012

    Hi,

    I did the following test in R2.

    ---------------------

    1) Modify LedgerJournalTransDaily form

    2) Edit the ledgerJournalTrans datasource. In the "Active" method, add

    ledgerJournalTrans_ds.allowEdit(false);

    right before the method returns.

    --------------------

    Now when I open a general journal, the whole record is disabled (including financial dimension). Can you try similar test on the form you are working on?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans