?
Solved

Add column to report in dynamics AX2009

Posted on 2011-02-21
3
Medium Priority
?
1,483 Views
Last Modified: 2012-05-11
Hello,

How can I add a column LedgerTrans.DocumntNum to Report "BankAccountStatment" in Dynamics AX 2009?
0
Comment
Question by:smetechit
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
agusacil earned 2000 total points
ID: 34950262
Hi,

In the BankAccountTrans table, you can create a new display method like this :

display DocumentNum documentNum()
{
    ;
    return LedgerTrans::findVoucherDate(this.Voucher,this.TransDate).DocumentNum;
}

Then add a new string control in the Body _2 in the BankAccountStatement with properties set as below :

Table : BankAccountTrans
DataField : <set to blank>
DataMethod : documentNum

Hope that helps.
0
 

Author Comment

by:smetechit
ID: 34951740
Thanks for your solution ... but how fields of BankAccountTrans are displayed in report without adding BankAccountTran as datasource?
0
 
LVL 4

Expert Comment

by:agusacil
ID: 34958978
Hi,

Thanks. If you don't want to have BankAccountTrans as datasource then you can create a display method in the report's methods section.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question