Protocol opening of form
oldwarrior
Member Posts: 11
Hi all,
Recently my company decided to implement new security guidelines. In these guidelines is specified
that all inserts, reads, modifies and deletions of sensitive records (i.e. customer, address) must be stored in a log. Insert, Modify and Delete are not a problem
and can be easily covered through standard "Change Log" functionality. But to track the reads is generating
me problems. I altered the functionality that Change Log has by default for log read but now I have to implement it
on every form. Not nice but I would achieve the goal. Problem I encountered now is that Navision throws me the following error
Because I am calling the code on the OnAfterGetRecord trigger. Does somebody has an idea for a work around.
Only thing that came to my mind was calling either a stored procedure or a web service but I would like to stick to standard C/AL.
Environment: NAV 2009 R2, SQL Server 2008 SP2, Classic Client
Thanks in advance,
Oldwarrior
Recently my company decided to implement new security guidelines. In these guidelines is specified
that all inserts, reads, modifies and deletions of sensitive records (i.e. customer, address) must be stored in a log. Insert, Modify and Delete are not a problem
and can be easily covered through standard "Change Log" functionality. But to track the reads is generating
me problems. I altered the functionality that Change Log has by default for log read but now I have to implement it
on every form. Not nice but I would achieve the goal. Problem I encountered now is that Navision throws me the following error
You cannot make any changes in the database until a transaction has been started.
Because I am calling the code on the OnAfterGetRecord trigger. Does somebody has an idea for a work around.
Only thing that came to my mind was calling either a stored procedure or a web service but I would like to stick to standard C/AL.
Environment: NAV 2009 R2, SQL Server 2008 SP2, Classic Client
Thanks in advance,
Oldwarrior
0
Answers
-
This should do the trick:
http://dynamicsuser.net/blogs/mark_brum ... usage.aspx
Save it in a singleinstance codeunit & temporary table first.0 -
Great post on your blog, it works!
Thanks
OldWarrior0
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
