Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Problem when trying to print Original and copy of SalesInvoice toghether

$
0
0

"..one of the reports shows up without lines.."

The cause for this is, you use the same variable "args" for the second line. Do you know what happens with passing by reference?

Your Code should be like this:

args.record(custInvoiceJourLocal);

new MenuFunction(menuitemOutputStr(SalesInvoiceCopy), MenuItemType::Output).run(args);

args = new Args();

args.record(custInvoiceJourLocal);

new MenuFunction(menuitemOutputStr(SalesInvoiceOriginal), MenuItemType::Output).run(args);

Check the difference now.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>