Options

Save value of Additional field in Purchase Line

darmaadarmaa Member Posts: 65
edited 2014-10-16 in NAV Three Tier
Hello all,
I created new field in Purchase line. but when I modify a "vendor no" on Purchase Order, this new field cant save value. other standard fields can save values. Example item no, quantity and amount etc, How can I save this value when vendor modify?

Comments

  • Options
    tinoruijstinoruijs Member Posts: 1,226
    You should check out the function RecreatePurchLines(ChangedFieldName : Text[100]) in table 38 - Purchase Header.
    When you modify the vendor, the purchase lines are recreated and you will have to add your custom field in the right spot in that function.
    Or better; create a hook to a codeunit where you added your modification. But if you want this, that depends on how you develop.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Options
    mohana_cse06mohana_cse06 Member Posts: 5,503
    Check whether you have to add code in RecreatePurchLines function of Table 38
  • Options
    darmaadarmaa Member Posts: 65
    Thank you so much tinoruijs and mohana_cse06. It is solved =D>
Sign In or Register to comment.