Dimensions

bhuber
Member Posts: 78
I have created a dataport designed to fill the Payroll Journal with earnings transactions from an external system. The dimension values for each line are supplied by the dataport and will differ from the employee’s default dimension values contained on the employee card. My problem is, that even though I am writing transactions to the Journal Dimension table after I insert the record in the Payroll journal in the dataport, the default dimensions from the employee card are overwriting my entries to the Journal Dimension table.
I would like to find a way to write records to the Payroll Journal, while also updating the dimension journal. I want to be able to use all of the Navision code that does field validation.
I am having a problem with the employee card dimensions overwriting the values that are being sent in from the dataport. I have found the specific function within codeunit 408 that is creating the entries in the Journal Dimension table. It seems like I need to write my values after Navision has completed it’s write or to stop Navision from writing the
default dimensions values from the employee card. Any ideas?
I would like to find a way to write records to the Payroll Journal, while also updating the dimension journal. I want to be able to use all of the Navision code that does field validation.
I am having a problem with the employee card dimensions overwriting the values that are being sent in from the dataport. I have found the specific function within codeunit 408 that is creating the entries in the Journal Dimension table. It seems like I need to write my values after Navision has completed it’s write or to stop Navision from writing the
default dimensions values from the employee card. Any ideas?
0
Comments
-
You might try in your OnAfterGetRecord to call INSERT explicitly. Then you can update your dimension values and call MODIFY - again all within OnAfterGetRecord.
Django0
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