public boolean validateWrite() { boolean ret; ret = super(); // your validation if() { ret = ... } if(!ret) { {{YourTable}}_ds.reread(); {{YourTable}}_ds.refresh(); {{YourTable}}_ds.research(). } return ret; }
YourDatasourceName_ds.reread(); YourDatasourceName_ds.rereadreferenceeDatasource(); YourDatasourceName_ds.research(true).
public boolean validateWrite() { boolean ret; DTDMCHeaderLines dTDMCHeaderLinesInv = this.cursor(); select firstonly DTDMCHeaderLines where DTDMCHeaderLines.InvoiceId == dTDMCHeaderLinesInv.InvoiceId; if(DTDMCHeaderLines.RecId != 0) { throw error('InvoiceId Already Exist'); } ret = super(); return ret; }
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 Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 868 User Group Leader
André Arnaud de Cal... 836 Super User 2025 Season 2
CA Neeraj Kumar 661