AX 4.0 Database Log for User Group changes

sammcs
Member Posts: 2
Hi, I wonder if anyone can advise ...
Is it possible to record changes to the Administration > Setup > User Groups, within the AX Database Log (Administration > Setup > Database Log) ?
I have seen a suggestion that you can log the changes to the "Administration > Group/user relationships" table and this will give you
what you want, but I can't seem to get this to record any changes at all.
Does anyone know of a way to do this or just get the Group/user relationships logging working ?
Thanks in advance
Sam
Is it possible to record changes to the Administration > Setup > User Groups, within the AX Database Log (Administration > Setup > Database Log) ?
I have seen a suggestion that you can log the changes to the "Administration > Group/user relationships" table and this will give you
what you want, but I can't seem to get this to record any changes at all.
Does anyone know of a way to do this or just get the Group/user relationships logging working ?
Thanks in advance
Sam
0
Comments
-
You should add a little cod in validateWrite() method
some like this appl.logInsert(yourTable)
see this method in class Application
void logInsert(Common recordInserted)
{
SysDatabaseLog sysDatabaseLog;
super(recordInserted);
if (!new DictTable(recordInserted.TableId).dataPrCompany())
{
changeCompany('dat')
{
sysDatabaseLog.logType = DatabaseLogType::Insert;
sysDatabaseLog.table = recordInserted.tableId;
sysDatabaseLog.logRecId = recordInserted.recId;
sysDatabaseLog.setData(recordInserted);
sysDatabaseLog.setDescription(recordInserted);
sysDatabaseLog.insert();
}
}
else
{
sysDatabaseLog.logType = DatabaseLogType::Insert;
sysDatabaseLog.table = recordInserted.tableId;
sysDatabaseLog.logRecId = recordInserted.recId;
sysDatabaseLog.setData(recordInserted);
sysDatabaseLog.setDescription(recordInserted);
sysDatabaseLog.insert();
}
}going to Europe0
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