web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to get Mainaccount name from Ledger Dimension AX 2012

(0) ShareShare
ReportReport
Posted on by 10,280

plz somebody help me to get the name of Main Account from Segmented Entry control

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    297,611 Super User 2025 Season 2 on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    Hi Codehunter,

    Would you mind to mark the first reply from Martin as correct answer?

  • Martin Dráb Profile Picture
    235,966 Most Valuable Professional on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    Well, that was exactly what I told you on the very beginning. :-)

  • Verified answer
    Codehunter Profile Picture
    10,280 on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    it works perfectly by using DimensionStorage::GetMainAccountFromLedgerDimension(RecID _LedgerDimension)

  • Suggested answer
    Mallika Roy Profile Picture
    552 on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    with ledgerDimension value you can get the Main account name with following method MainAccount::findByLedgerDimension() or with MainAccountId value you can use MainAccount::findByMainAccountId().  You may also refer to the DimensionAttributeValuCombination table. Anything that uses dimensions will hold reference to a record on this table.

  • Codehunter Profile Picture
    10,280 on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    the first segment includes Main account

  • Martin Dráb Profile Picture
    235,966 Most Valuable Professional on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    What do you mean by the description of a segment?

    By the way, main account isn't required to be the first segment. Therefore you should decide whether you mean the first segment or the segment with main account (before you start implementing anything).

  • Codehunter Profile Picture
    10,280 on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    i mean Ledger dimension includes 3 segments ;what i need precisely to display the description of the first segment which is always Main Account so how can i do that??

  • Martin Dráb Profile Picture
    235,966 Most Valuable Professional on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    I already answered what I understand by that. I have no idea what else you can mean by "the name of main account from ledger dimension".

    Unless you provide a better explanation, I can't help you.

    If it's not worth a more detailed description, it's probably not worth discussing at all.

  • Codehunter Profile Picture
    10,280 on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    i need to display the name of main account from ledger dimension so i hope you got my point

  • Martin Dráb Profile Picture
    235,966 Most Valuable Professional on at
    RE: how to get Mainaccount name from Ledger Dimension AX 2012

    Sorry, I don't understand what you're saying nor how it matches with what you said before.

    Also note you don't have to be shy to use more than one sentence when describing your problem and what exactly you need from other community members.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans