plz somebody help me to get the name of Main Account from Segmented Entry control
*This post is locked for comments
Hi Codehunter,
Would you mind to mark the first reply from Martin as correct answer?
Well, that was exactly what I told you on the very beginning. :-)
it works perfectly by using DimensionStorage::GetMainAccountFromLedgerDimension(RecID _LedgerDimension)
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.
the first segment includes Main account
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).
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??
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.
i need to display the name of main account from ledger dimension so i hope you got my point
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Syed Haris Shah 9
Martin Dráb 2 Most Valuable Professional
Community Member 2