Hello All,
How to delete table data through report
*This post is locked for comments
tablerec.deleteall;
Hi,
On OnAfterGetRecord() trigger of the DataItem write the below code
Record.DELETEALL; //Record is TableName
this will delete all Table data.
If you want to delete only some records then add the condition then Delete
OnAfterGetRecord()
IF (Sales.DocType ='Invoice') and (Sales.Amount = 0 ) THEN //This is an example
DELETE;
ELSE
CurrReport.SKIP;
Thanks a lot chris
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.
Saurav.Dhyani 2 Super User 2025 Season 2
RK-25090803-0 1