Hello All,
How to delete table data through report
*This post is locked for comments
Hello All,
How to delete table data through report
*This post is locked for comments
Thanks a lot chris
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;
tablerec.deleteall;
André Arnaud de Cal...
292,489
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156