[ExtensionOf(classStr(SrsReportRunController))] final class UCL_SrsReportRunController_Extension { public CustInvoiceJour custInvoiceJour; public LabelType parmDialogCaption(LabelType _dialogCaption) { reportDialogCaption = next parmDialogCaption(_dialogCaption); if (this.getReportContract().parmRdpName() == 'SalesInvoiceDP') { args = this.parmArgs(); custInvoiceJour = args.record(); if (custInvoiceJour) { reportDialogCaption = strFmt('%1', custInvoiceJour.InvoiceId); } } return reportDialogCaption; } }
[ExtensionOf(classStr(SrsReportRunController))] final class UCL_FreeTextInvoice_Extension { public CustInvoiceJour custInvoiceJour; public CustInvoiceTable custInvTable; public LabelType parmDialogCaption(LabelType _dialogCaption) { reportDialogCaption = next parmDialogCaption(_dialogCaption); if (this.getReportContract().parmRdpName() == 'FreeTextInvoiceDP') { args = this.parmArgs(); //custInvoiceJour = args.record(); custInvTable = args.record(); if (custInvTable) // If the free text invoice print from All free text invoice { reportDialogCaption = strFmt('%1', custInvTable.displayInvoiceAccount()); } } return reportDialogCaption; } }
When launching Sales Invoice, the record (CustInvoiceJour) is passed correctly via Args.record().
CustInvoiceJour
Args.record()
But when launching Free Text Invoice, the system may not pass the CustInvoiceTable as Args.record(). Instead, it's sometimes empty or uses different mechanisms to pass data (like Report Parameters).
CustInvoiceTable
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 Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 813
André Arnaud de Cal... 738 Super User 2025 Season 2
Sohaib Cheema 566 User Group Leader