Creating new fields and passing them to tables

rj5570
Member Posts: 157
i was wondering how i can pass a new field from one table to another.
example, i created a new field in gen. line journal and i wanted to pass it to the G/L entry table. I created the fields exactly the same in each table with the same field #, name and settings.
but when i post, the information doesnt show up on the G/L entry table.
what do i need to do to validate this field so it will pass
example, i created a new field in gen. line journal and i wanted to pass it to the G/L entry table. I created the fields exactly the same in each table with the same field #, name and settings.
but when i post, the information doesnt show up on the G/L entry table.
what do i need to do to validate this field so it will pass
- So it Goes.
0
Comments
-
Modify codeunit 12 "Gen. Jnl.-Post Line".
See "InitGLEntry" function.0 -
thank you!
now all i need is permission to do that, time to check the pricing and get with my NAV re-seller- So it Goes.0 -
Check out codeunit 10201 - Transfer Custom Fields. This codeunit is there exactly for this purpose. Put your field transfer into the GenJnlLineTOGenLedgEntry function and that shold take care of all your needs..0
-
-
still need to get licenses to be able to run design of code unit- So it Goes.0
-
Dear Denster,
I could not find the codeunit 10201 - Transfer Custom Fields in nav 2017. Will you advice please...
Kris0 -
-
@krishnamk
The suggested solution was relevant is 2008. we're in 2017 and you're using NAV 2017. Fortunately, the world has changed a lot. We have more options than just modify standard objects. Check this1 -
Hi,
As suggested by @nabil.bamoh@hotmail.com, if you cannot modify standard objects, you can create events in a new codeunit i.e. create a new function. Add the eventPublisherObject i.e. your object name. Add the event function which indicates when this code will execute and if required you need to add your event publisher element like in the case of OnAfterValidateEvent.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