Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to disable a financial dimension on a form

(0) ShareShare
ReportReport
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
    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
    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
    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
    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
    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
    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
    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
    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
    8,705 Moderator 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
    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans