Creating new fields and passing them to tables

rj5570rj5570 Posts: 157Member
edited 2008-01-17 in Navision Attain
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
- So it Goes.

Comments

  • KonradKonrad Posts: 30Member
    Modify codeunit 12 "Gen. Jnl.-Post Line".
    See "InitGLEntry" function.
  • rj5570rj5570 Posts: 157Member
    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.
  • DenSterDenSter Posts: 8,142Member
    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..
  • SavatageSavatage Posts: 7,140Member
    Nice call - I like that codeunit!
  • rj5570rj5570 Posts: 157Member
    still need to get licenses to be able to run design of code unit
    - So it Goes.
  • krishnamkkrishnamk Posts: 27Member
    Dear Denster,

    I could not find the codeunit 10201 - Transfer Custom Fields in nav 2017. Will you advice please...

    Kris
  • DenSterDenSter Posts: 8,142Member
    it's part of the NA localization
  • NavNabNavNab Posts: 179Member
    @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 this ;)
  • Tina_MenezesTina_Menezes Posts: 12Member
    Hi,
    As suggested by @[email protected], 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.
Sign In or Register to comment.