OnDatabaseModify trigger in CU 1
generic
Member Posts: 511
Hello
I noticed the new triggers in CU 1. I tried to see how it works and add a
message('testing') on trigger OnDatabaseModify
This is on sql 2009 R2.
The trigger is not working. when I run code to modify a record.
customer.findfirst;
customer.name := 'test';
customer.modify;
why isn't it triggering the code?
I noticed the new triggers in CU 1. I tried to see how it works and add a
message('testing') on trigger OnDatabaseModify
This is on sql 2009 R2.
The trigger is not working. when I run code to modify a record.
customer.findfirst;
customer.name := 'test';
customer.modify;
why isn't it triggering the code?
0
Comments
-
These functions were created for the Dynamics CRM Connector. See also http://msdn.microsoft.com/en-us/library/gg502491.aspx , Record IDNo support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Thanks for the documentation link, but that link is useless.These triggers are called whenever a record changes through code or user interaction.
I'm trying to find out why the triggers do not trigger
0 -
That's because you didn't explore that page, but only read one line.generic wrote:Thanks for the documentation link, but that link is useless.
I'll give it another try: See http://mibuso.com/blogs/mandyk/2011/01/ ... n-2009-r2/No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
@Luc, thanks for the interesting blog
0 -
does modify(true) trigger itThe trigger is not working. when I run code to modify a record.
customer.findfirst;
customer.name := 'test';
customer.modify;
why isn't it triggering the code?
According to the blog it does
0 -
Like with the OnGlobalXXXX-functions in C1, you first need to do some setup and the first time an action is done on a table, the function GetGlobalTableTriggerMask is called that decides what has to be done in case of an Insert/modify/Delete/Rename of that table.
So, first you need to do some setup and then do some action on that table. The first time you do an action on a table, the function "GetDatabaseTableTriggerSetup" is called that decides what has to be done in case of an Insert/modify/Delete/Rename of that table.
BTW: If you are on R2, it is best to use OnDatabase-triggers than the OnGlobal-triggers. The OnGlobal-triggers are NOT triggered if you do an insert from code. The OnDatabase-triggers are (I didn't do any extensive testing on it, but it seamed to me like that).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
