Dialog box for progress during deleteall

suvidha
Member Posts: 117
Hi,
i have a report which deletes records in a table.
Since it takes some time to delete the records i want to show a progress dialog.
i am using deleteall function.
any ideas?
thank you
i have a report which deletes records in a table.
Since it takes some time to delete the records i want to show a progress dialog.
i am using deleteall function.
any ideas?
thank you
0
Answers
-
With a deleteall, it is not possible to use a dialog box.
Or you can use one to show that it is deleting but it will NOT show a progress. Like this:Window.OPEN('Deleting'); recSomeTable.DELETEALL(...); Window.CLOSE;
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
if using deleteall you cant use a progressbar dialigbox.
You can delete the recs in a loop (here you can create a progressbar), but this is not so fast like deleteall.
Other:
You popup a window where you writeWindows.Open('Delete Recs'); Rec.deleteall; Windows.close();
But there is also no progressbar
RegardsDo you make it right, it works too!0 -
Hehe, Kriki, nice idea ;-)
Thjis could be an idia of mine :-DDo you make it right, it works too!0 -
There are a few posts about progress bars, e.g.
http://mibuso.com/forum/viewtopic.php?t=23896
http://mibuso.com/forum/viewtopic.php?t=21386
You need some variable, say NumDeleted, to keep track of how many records have been deleted so far; and a line of code in the OnDelete trigger to increment this variable.
This code will only get executed if your command is DELETEALL(TRUE).
DELETEALL, or the equivalent DELETEALL(FALSE), do not execute the code in the OnDelete trigger, but that means that they should be more efficient, so the deletion might take even more time if you change to
DELETEALL(TRUE) - you'll have to see how much performance is affected, and whether it is worth it.Alastair Farrugia0 -
Thank you all..... it helped0
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