Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Add new field in table Dynamics NAv2013 r2

Posted on by Microsoft Employee

Hello

in table 25 Vendor Ledger Entry , i need to add new field named Vendor Name exist in table 23 Vendor.

Can any one help me i m amateur developper

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add new field in table Dynamics NAv2013 r2

    think you

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add new field in table Dynamics NAv2013 r2

    think you very much Alexander

  • Suggested answer
    ManishS Profile Picture
    ManishS 6,578 on at
    RE: Add new field in table Dynamics NAv2013 r2

    If you just want to know the vendor name for which you are checking the vendor ledger then you can look into the blue bar(Title) at top where you can check the vendor code - Vendor Name is already available.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add new field in table Dynamics NAv2013 r2

    You can add new field  name as "Vendor Name" as Object ID of 50000 series.

    Then you have to add code in Code Unit 12 to update the values in this field.

    OR if you don't to write code u can use the look up option for that field in the table 25.

    Create new feild-50001-Vendor name-go to properties of the field-Table Relation-give table name as 23 and field as "No."-save.

    After doing this you will get the look up in the Vendor name field of the new table which will populate the data from 23 table.

    Hope this will help you.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Add new field in table Dynamics NAv2013 r2

    Hi,

    You may add a flow field in the Vendor Ledger Entry to lookup the name of the Vendor from the Vendor table.

  • Verified answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Add new field in table Dynamics NAv2013 r2

    You can also add a new field and make it a FlowField. Set this up to lookup for vendor name in Vendor table by Vendor No. field, available in Vendor Ledger Entry.

    In Development Environment, press "Design" on a Vendor Ledger Entry table. In the last row, create a new filed in 50,000 range (e.g., 50001) and name it Vendor Name, set it a text type with 50 length (check that it is not smaller then the Vendor Name field in 23 Vendor table). Then, in the properties of that field, select FlowField in the FieldClass property, and in the CalcFormula property setup a formula to lookup in Vendor table for Name by Vendor No. field. The formula should look like this: Lookup(Vendor.Name WHERE (No.=FIELD(Vendor No.))) . Compile the table and run it - you should have your name filed filled with data automatically.

    This is quite easy option to add fields filled with data and avoid programming - however you should use it very carefully as many additional flowfields might critically degrade the database performance.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add new field in table Dynamics NAv2013 r2

    You can add field Vendor Name in 50000 series. You need to add code in CU 12 to fill the value in this field and you would require developer license for the same

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans