Object Save Trigger ???

liquid_dream
Member Posts: 8
Hi,
Is it possible to detect when is an object being saved?
I know that some triggers in Codeunit 1 are triggered when the Change Log Setup is Configured do record changes in the Object Table.
However those triggers seem to be run only when you change the fields directly in object design. When I open the object in design mode and then save it, no trigger is triggered.
Thx.
Miguel
Is it possible to detect when is an object being saved?
I know that some triggers in Codeunit 1 are triggered when the Change Log Setup is Configured do record changes in the Object Table.
However those triggers seem to be run only when you change the fields directly in object design. When I open the object in design mode and then save it, no trigger is triggered.
Thx.
Miguel
0
Comments
-
What I did to detect the changes was making a singleinstancecodeunit that compared the object table to a copy of that table with the same data, using a timertrigger.
That was about 4 years ago the best idea I could come up with, maybe there are new ways with current versions.0 -
That's a nice idea but that way i cannot stop someone from saving the object. I have a table with object Ids and i need to block save changes to those objects.0
-
Can't you do this with userroles? Just deny modify rights to these objects. Or will the usersetup get to complex that way?0
-
I can´t believe i didn´t think of that. (I feel stupid right know)
Thx you just solved my problem. It's going to be a lot of work but it's solved. =D>0 -
also, if you running sql, you can put some code in the Object table's triggers.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