Notifications
Announcements
No record found.
Hi All,
I am creating a validation logic in VendEditInvoice form every time it calls the refresh method. I have created an extension of form method. My question now is that how can I can the datasource and active table records so I can perform the validation logic based from the current records of the datasource of this form.
Here is my initial code.
[ExtensionOf(formStr(VendEditInvoice))]final class VendEditInvoiceFormRefresh_Extension{ public void refresh() { next refresh();
//how to get the value of the datasource or table records of the form?? }
}
Simply refer to the data source by its name, such as vendInvoiceInfoTable.
By the way, please always use Insert > Insert Code to paste source code. It will look this way:
[ExtensionOf(formStr(VendEditInvoice))] final class VendEditInvoiceFormRefresh_Extension { public void refresh() { next refresh(); //how to get the value of the datasource or table records of the form?? } }
Thanks Martin, and noted on the paste source code part.
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 551 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional