Notifications
Announcements
No record found.
Hi,
When I want to create class extension for displayExchRate in CustInvoiceTable, i got this error.
"Display methods can take only optional arguments, other than the first argument which can be a table."
display CustExchRate displayExchRate(date _date) { #isoCountryRegionCodes CustExchRate s; ; s = next getExchRate(_date); return s; }
Thanks in advance,
Best regards,
Hi Oguzhan,
You won't create display method with parameters other than tables as an argument. Also adding an argument is possible when you add display method at form DataSource level. Table level display method doesn't take any arguments.
Thanks,
Girish S.
Hi, In this case, Pre or Post event handler will work.
[ExtensionOf(tableStr(CustInvoiceTable))] public final class CustInvoiceTable_T_Extension { /// /// /// /// [PostHandlerFor(tableStr(CustInvoiceTable), tableMethodStr(CustInvoiceTable, displayExchRate))] public static void CustInvoiceTable_Post_displayExchRate(XppPrePostArgs args) { Date dateLocal = args.getArg('_date'); //Add Logic args.setReturnValue(dateLocal); } }
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 565 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader