2013 changes on CU-1 OnDatabaseXXX

Ninlil
Member Posts: 20
In 2009 you could catch changes to the Object-table using these triggers in Codeunit 1.
For example:
This is how we could protect a customers production database from ever getting a "Modified" object in, thus protecting it from accidental editing and possibly objects that had not passed the testing database.
We could also create a "object change-log" every time a trigger caught a change, logging the object, user, action and timestamp.
Anyone know how we can catch this in NAV2013 since the Development Env. don't and can't run any C/AL at all?
For example:
This is how we could protect a customers production database from ever getting a "Modified" object in, thus protecting it from accidental editing and possibly objects that had not passed the testing database.
We could also create a "object change-log" every time a trigger caught a change, logging the object, user, action and timestamp.
Anyone know how we can catch this in NAV2013 since the Development Env. don't and can't run any C/AL at all?
0
Comments
-
We have done it through sql triggers. There a couple of solution in mibuso download section.0
-
Yes, we did this previously also (using an SQL-trigger on the Object-table), but the error-message to stop an invalid "modification" was so ugly that scared the customer (and us), and was very hard to actually see among the extra messages the NAV-client added to the messagebox.
That option is also a large magnitude harder to maintain than just updating CU-1 (and possibly a log-table)0 -
An additional issue is that on NAV2013 you cannot in SQL catch what user is doing the modifications. :-k -> ](*,)0
-
=D> Thanks Bardur Knudsen at NAVtechdays today that pointed out that since the NAV 2013 DevEnv directly connects to the SQL-server, an SQL-trigger can actually catch the real user modifying the Object table.0
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