Delete All Data of modified tables using batch report!!

prateekarya2011
Member Posts: 40
Dear All,
I just wanted to delete all the data in modified tables or the tables that i have created.
1 solution that i got is to create the record variable of all the tables in a batch report and then call recordVariableOfTable.Deleteall;
Its a hectic task to do..
Please suggest.
Thanks in advance ;-)
I just wanted to delete all the data in modified tables or the tables that i have created.
1 solution that i got is to create the record variable of all the tables in a batch report and then call recordVariableOfTable.Deleteall;
Its a hectic task to do..
Please suggest.
Thanks in advance ;-)

0
Comments
-
You can use a report to fetch Object table, filtering by Type = Table, ID, version list and so on...
Then use a RecordRef variable to refer to each of those ones and delete them records.* Daniele Rebussi * | * Rebu NAV Diary *0 -
Or maybe a bit more save (you might make an error in setting the filter right in geordie's solution):
Create a ProcessingOnly report with a DataItem per table involved and put DELETEALL in each OnPreDataItem trigger.
In this way you're more sure in which tables you will delete all records.0 -
-
:shock: That's a strange undertaking!
What do you plan to do with the remaining, now likely inconsistent, data?
You should- use the triggered version of the DELETEALL function -> DELETEALL(TRUE)
- probably not delete all the data in standard tables modified by you but rather only delete the fields you have added and possibly modify the data of standard fields you added, data first then the table field after that. Delete or transform the fields contents of standard fields you abused.
Or else you'd probably be better off transferring the data you wish to keep to a new, empty database, reposting any posted entries.0 -
Thanx Vaprog0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions