Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Print Check copies while generating payments AX 2012

(0) ShareShare
ReportReport
Posted on by 2

Hello Everyone,

I have a requirement where I need to print the check copies along with the actual checks when I generate payments from the payment journal. Is there anyway we can modify the controller class and make it to print both the original and copy reports at the same time?

Thanks

*This post is locked for comments

  • Verified answer
    dynamics developer Profile Picture
    2 on at
    RE: Print Check copies while generating payments AX 2012
    
    

    OK, I figured it out myself. I called the PrintCheque method of the BankChequeCopy Class after the start operation method and passed the args after modifying it from the current arguments.

    here is what I did

    .
    .
    .
    controller.startOperation();
    
    
    if(controller.parmArgs().caller() is BankChequePrint)
        {
    
            _bankChequePrint = controller.parmArgs().caller();
            if(!_bankChequePrint.parmTmpChequePrintout().Copy)
            {
                _chequeTable=_bankChequePrint.parmTmpChequePrintout();
    
                select forUpdate _chequeTable;
                ttsBegin;
                _chequeTable.Copy=NoYes::Yes;
                _chequeTable.update();
                ttsCommit;
    
                copyCheque = new BankChequeCopy();
                copyCheque.printCheque(_chequeTable);
            }

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,000 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans