Archiving
sabzam
Member Posts: 1,149
Is it possible to archive in some way or another Customers, Vendors and Items? For example rather than simply blcoking a customer I want it to be removed from all reports and list.
0
Comments
-
Not through Navision.
We routinely archive information into a separate database through data exports and sql, though. Items that haven't been sold or purchased in years, customers that haven't bought anything.
It's tricky, though. You have to know all the tables to hit. Like archiving customers, you need to check customer ledger entries, detailed customer ledger entries, etc. It can throw things off if it's not done right.0 -
Hello
You can use the following tool to do this.
viewtopic.php?t=15580&highlight=merge+customer
This allows you to merge the customer into one customer0 -
sabzam wrote:Is it possible to archive in some way or another Customers, Vendors and Items? For example rather than simply blcoking a customer I want it to be removed from all reports and list.
The best way to go about it is to modify the reports and forms so blocked customer does not display.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
What we did on the lists (Customer Example)
Add A VAriable "Form Filters" type option
Options are: All Accounts,Active Accounts,Blocked Accounts
Now add a textbox at the bottom right of the form.
remember...Change Glue To BOTTOM
Sourceexp of the textbox willbe "Form Filters"
add the code to the textbox (you can use a case statement too)OnAfterValidate() IF "List Filters" = "List Filters"::"All Accounts" THEN BEGIN RESET; END; IF "List Filters" = "List Filters"::"Active Accounts" THEN BEGIN RESET; SETRANGE(Blocked,FALSE); END; IF "List Filters" = "List Filters"::"Blocked Accounts" THEN BEGIN RESET; SETRANGE(Blocked,TRUE); END; CurrForm.UPDATE;
Most list forms are uneditable so to get around that..
add this to the textbox triggers.OnActivate() CurrForm.EDITABLE(TRUE);
OnDeactivate() CurrForm.EDITABLE(FALSE);
Save->Complie->Enjoy0 -
Alex Chow wrote:sabzam wrote:Is it possible to archive in some way or another Customers, Vendors and Items? For example rather than simply blcoking a customer I want it to be removed from all reports and list.
The best way to go about it is to modify the reports and forms so blocked customer does not display.
make sure you add indexes, otherwise you will run into performance issues.
Also the users will need to get trained on how to change keys when they start adding additional filters.
Merging customers I would say is a better solution. You can have one generic customer called Archived, and merge all the other customers into it.0 -
Can't say that I like the merging idea. Certainly it's easier, but what about historical data? You're basically wiping out the whole history of that customer (or vendor, item, whatever). And once it's merged there's no going back.
I guess it's a trade off, though. If your company will NEVER need that data again (mine always needs old data for something) then it's fine.0 -
matttrax wrote:I guess it's a trade off, though. If your company will NEVER need that data again (mine always needs old data for something) then it's fine.
If that's true, why archive in the first place?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
I agree that there's really no need for it, but it started before I came on board at my company. I have not yet been able to convince them that they don't need to.
But their argument is that they still need that data, just not in every report or view they have. So we basically only keep 4-5 years worth of data in our production database (been on NAV for 10+). And every few months or so we'll have to pull some of that data from another database for them.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 327 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

