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; }
YourDatasourceName_ds.reread(); YourDatasourceName_ds.rereadreferenceeDatasource(); YourDatasourceName_ds.research(true).
public boolean validateWrite() { boolean ret; ret = super(); // your validation if() { ret = ... } if(!ret) { {{YourTable}}_ds.reread(); {{YourTable}}_ds.refresh(); {{YourTable}}_ds.research(). } 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 Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,100
André Arnaud de Cal... 890 Super User 2025 Season 2
Sohaib Cheema 633 User Group Leader