Function maketext in codeunit 1

ta5
Member Posts: 1,164
Hi
I came along a strange issue with maketext. While searching for the issue I added a debug message on the first line of function maketext. In classic the message fired as planned, but never in RTC. Is this function called at all in RTC :?
Btw 1: NAV 2009R2
Btw 2: Debugging in Visual Studio was also negative, same for function getglobaltriggermask, which is used for changelog.
Thanks in advance
Thomas
I came along a strange issue with maketext. While searching for the issue I added a debug message on the first line of function maketext. In classic the message fired as planned, but never in RTC. Is this function called at all in RTC :?
Btw 1: NAV 2009R2
Btw 2: Debugging in Visual Studio was also negative, same for function getglobaltriggermask, which is used for changelog.
Thanks in advance
Thomas
0
Answers
-
Nobody? Do you need more detailed info?
Thx in advance, any tips appreciated.
Thomas0 -
It's not called, you are correct.0
-
mdPartnerNL wrote:It's not called, you are correct.
This also applies to the LogFunction GetTableTriggerMask, doesnt it? But from where is the log mechanism started then?
Regards
Thomas0 -
The functions "OnDatabaseInsert", "OnDatabaseModify", OnDatabaseDelete", and "OnDatabaseRename" are the ones that are called for any modification to records in the database. This is true for NAV 2009 and NAV 2013. The functions "OnGlobalInsert", "OnGlobalModify", "OnGlobalDelete", and "OnGlobalRename" are functions called when the respective table triggers are executed (for INSERT(TRUE), MODIFY(TRUE)...). This is where any of the logging is starting now.
NAV 2013 now has the GetTableDatabaseTableTriggerSetup, which is basically a "replacement" of "GetGlobalTableTriggerMask".Peter Zentner
NAV Practice Manager at Clients First Business Solutions
Did you check out our free training videos at www.dynamics-nav-training.com?
Look at our blogs.0 -
Thanks, I will close the issue!
Regards
Thomas0 -
Hi all,
We just upgraded to NAV2013. We had modified MakeText (and created MakeCode) in 3.7B to keep copy/pasted CR/LF/TABs out of our database. Since going live we have started to see these hidden characters making there way back into our database. I did the same as the original poster did and saw that MakeText does not appear to be called.
How is everyone else getting around this? It seems silly to modify EVERY text/code field in every user-entry table in NAV to call a custom function to delete these characters on entry.
I found this thread: viewtopic.php?f=5&t=32805&hilit=maketext where user gerdhuebner talked about modifying GetGlobalTableTriggerMask but warned of a performance hit.
EDIT: it looks like the client is dropping CR/LF automatically, but will allow me to paste a TAB character into a text field.kind of fell into this...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