Announcements
No record found.
Hi everybody!I am trying to call a display method contributionMargin() from a CustInvoiceTrans table so when i select all the fields from the table the display method returns a value. I don't want to select all the custInvoiceTrans fields for performance reason so when I select certain fields it does not return any value.
so which fields that are related to this display method so if i call it the method can return a value?
It seems that you didn't select all fields that the method needs. You can use the debugger to find out where the calculation fails, if you can't find it by just by looking at code.
It seems that it is a standard method otherwise you would created that. So first I would suggest you to create a custom display method on that table with only fields you require. And to verify if data is coming or no try firing a SQL query. If it's working fine in SQL, try debugging the code by writing a runnable job.
thank u Martin..
by using the debugger i found these fields that are required for the display method contributionMargin() to run successfully
SalesId
invoiceId
invoiceDate
NumberSequenceGroup
StockedProduct
InventTransId
SalesCategory
InventDimId
Qty
SalesUnit
CurrencyCode
ItemId
LineAmount
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 555 Most Valuable Professional
André Arnaud de Cal... 484 Super User 2026 Season 2
CU10121822-0 378