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 :
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

I have the same question (0)
  • Novartex Profile Picture
    60 on at

    looking for same

  • dolee Profile Picture
    11,279 on at

    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?

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    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.

  • Xander Vink Profile Picture
    2,550 on at

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

  • Verified answer
    Xander Vink Profile Picture
    2,550 on at

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

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

  • Suggested answer
    Prisy Profile Picture
    10 on at

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

    //disable dimension 3

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

    Enjoy!!

  • Xander Vink Profile Picture
    2,550 on at

    Prisy,

    that solution doesn't work for AX 2012.

    (it does for pre 2012 versions)

  • Shankar.adi Profile Picture
    130 on at

    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

  • Shankar.adi Profile Picture
    130 on at
  • ManishSaxena Profile Picture
    10 on at

    Hi Amr,

    I am having similar requirement.

    I used

    dimensionDefaultingController.setEditability(false);

    using condition.

    That does the trick :)

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans