Hi,
I want to add fields in PurchTotals form commonly known as "Totals". There is no such datasource in the form and the methods in the form are calling PurchTotals classes to get the fields. I'm confused how to add new field there?
Any help or suggestion is appreciated.
Regards,
Ali
Hi Ali,
You can check the methods calcTotals and setDisplayFields in the form. The entire calculations are done in PurchtotalsForm class which is instantiated in the init method. calcTotals calls PurchtotalsForm\calclTotals method calculates all the values.
Then the setDisplayFields method is called which sets the individual controls in the form with the values from PurchtotalsForm class.
You will have to create CoC on these methods depending on what additional fields you want to display.
Abhilash Warrier
565
Martin Dráb
536
Most Valuable Professional
André Arnaud de Cal...
402
Super User 2025 Season 1