accountname methods

Not a class Function error

display LedgerJournalAccountName AccountName()

{

return LedgerJournaltable::find(AccountName).AccountName;

}

thanks for help

HI

Let u try this Code…

display LedgerJournalAccountName AccountName()

{

if (this.AccountNum)

{

if (!this.Company)

{

return this.accountNameFind(this.AccountType, this.AccountNum);

}

if (xDataArea::exist(this.Company))

{

changecompany(this.Company)

{

return this.accountNameFind(this.AccountType, this.AccountNum);

}

}

}

return “”;

}

sorry Not Success

table out of range show errors

HI

try this code

return LedgerTable::find(_accountNum).AccountName;

Regards

Syed Abuthahir

ledgerjournalid is incomplited error show And my Table name is LedgerJournalTable

Hi

If you need to find accont name with Help of Account Num but you are using Ledger journalTable so first findout account num from that table the pass that acccont num correcsponding Account type to find …

I hope that u will understand

Regards

Syed abuthahir

sayed sir

my problem is i want print acountnum and acountname in header part

if transition more time in Single Accountnum

So Accountnum print One Time And All Transition in This account print Under this Account

And Account NAme Print One Time

i thing My Problem you will Understand

Example

Account num Accountname

1010 machine

this type ALL TRANSITION UNDER THIS ACOUNTNUM

I HOPE THAT U WILL UNDERSTAND

ACCOUNTNAME NOT SHOW IN FRONT OF FIRST ACCOUNTNUM

I understood .

which datasource you will get Acccount Num?

DATASOURCE

TABLE LEDGERJOURNALTRANS & LEDGERJOURNALTABLE

AND RELATION ACCOUNTNUM==JOURNALNUM

I WILL GET ACCOUNTNUM FROM LEDGERJOURNALTRANS TABLE

AND ACOUNTNAME GET FROM LEDGERJOURNALTABLE

First your relation is wrong

LEDGERJOURNALTABLE .journalNum == LEDGERJOURNALTRANS .journalnum

second you have LEDGERJOURNALTRANS datasource- LEDGERJOURNALTRANS table has accontname simply u can use that methods…

If you are using AX2009

hopefully you will get a output

dear sayed sir

ohhh Sorry my Relation is LEDGERJOURNALTABLE .journalNum == LEDGERJOURNALTRANS .journalnum

and i used AX 2009

And thank u so much for help me

I hope that you will get solution for this issue

if yes Don’t forget to accept as verfified solution.