OnGlobalmodify
generic
Member Posts: 511
Hello
On GlobalModify Trigger in CU 1 gets triggered when a user modifies a record.
Would it be possible to have globaltriggers when code modifies the record?
They would be called onGlobalCodeModify(recRef,xrecRef)
This would minimize a lot of customization solution centers and vertical solution centers.
On GlobalModify Trigger in CU 1 gets triggered when a user modifies a record.
Would it be possible to have globaltriggers when code modifies the record?
They would be called onGlobalCodeModify(recRef,xrecRef)
This would minimize a lot of customization solution centers and vertical solution centers.
0
Comments
-
Really? How do you figure that?generic wrote:This would minimize a lot of customization solution centers and vertical solution centers.0 -
For example
LS Retail doesn't have to modify every tables that it needs for replications.
There are a lot of objects where Record.modify(true) is not called. and I've merged many vertical solution where they comment the //record.modify and add their they own code.
Field Level security addon don't need to do the same modifications.
Just like NA version as xtransfercustom fields CU, you can have the same feature for global modifications.0 -
I still don't understand this point though. So there would be another place where you can write custom code, maybe even have easier access to a more global event. Still, if you need to modify the app, you still need to modify the app, doesn't matter where you write the code.generic wrote:This would minimize a lot of customization solution centers and vertical solution centers.0 -
Yes but you are modifying less existing objects. Thus less objects to merge.0
-
Right I see your point, yes it is easier to merge a function call than a whole bunch of code. Too bad that it is easier to add some code than to create an external function to call
. This is available now though, and still many add-ons are difficult to merge. 0 -
And it can be dangerous, because many people will focus on modifying this trigger instead the correct process like posting codeunit etc. when they need something, and it will mean that there will be many "hidden" code behind.
E.g. some values/records are modified during posting - ok, I will check the posting codeunit for changes - nothing. Ah, the new trigger, let me see... ok, new call to one cryptic codeunit with big case analyzing what is modified/inserted and calling many functions in different cases. And wait, what if I added/modified the record not through the posting codeunit, but manually because I, as an partner, needed to correct something bad in the entries? Oh s..t, the trigger was called too!
Take it as an example what can happen if... :-)0 -
[Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]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

