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)

Get individual dimensions value from Ledger Dimension

(0) ShareShare
ReportReport
Posted on by 169

Dear ALL;

I have one record like this

33510002-OSP-Projects-OSR-02-02-04-0068-C-OSP-0253

and his record is saving in ledgerdimension field. I want to display all the segments separately. Can Somebody please share the

code how can I display all the dimensions separately..

Thanks and regards..

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,912 Most Valuable Professional on at

    If you want to display all values, you can use DimensionAttributeLevelValueAllView.

    If you wanted to work with individual segments in code, DimensionStorage class would help you.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at
    static DimensionDisplayValue getAttributeValueFromCombination(
        DimensionAttributeValueCombination _combination, 
        Name _attributeName = 'BusinessUnit')
    {
        DimensionAttributeLevelValueView valueView;
        DimensionAttribute attribute = DimensionAttribute::findByName(_attributeName);
        ;
        select DisplayValue from valueView 
            where valueView.ValueCombinationRecId == _combination.recId 
            && valueView.DimensionAttribute == attribute.RecId;
        return valueView.DisplayValue;
    }


    Above code should help you .

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Mohamed Ahmed Hassan,

    For what purpose do you need this separation?

    If it is 'only' for investigating the results then you can make use of the trial balance form in GL that allows you this separation by the selection of a standard parameter inside the form.

    Best regards,

    Ludwig

  • Mohamed Ahmed Hassan Profile Picture
    169 on at

    Hi Ludwig;

    No I have to display them in report. That's why I was looking for code...

    Thanks..

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    I see.

    Then try to take a look at the trial balance form and how they realized the separation of the findims there.

    Best regards,

    Ludwig

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans