Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Add field to form from another table

Posted on by 155

Hi NAV experts

I have the following requirement:

On the Items pane I can see Item's price by vendor with the following fields

"Item No.", "Vendor No.", "Direct Unit Cost", etc

My question is... how can I add the vendor name field on that form?

Thanks in advance

*This post is locked for comments

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Add field to form from another table

    Angel, you should be able to create additional fields; try putting all your additional objects within 50.000+ objects range. It is the range for additional objects for users.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add field to form from another table

    If you try creating field in 50000 Series, it should definitely work in your license as well . Check the screenshot attached in my earlier thread.

  • Angel Arteaga Profile Picture
    Angel Arteaga 155 on at
    RE: Add field to form from another table

    Thanks for help, I tried this way too, but my license don´t allow me to add fields to Purchase Price Table.

    So I decided use a variable in the form

    Thanks again

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Add field to form from another table

    You can also add a Vendor Name field in the Purchase Price Table and define it as a FlowField, that would LookUp by Vendor No. in the Vendor table and take the Vendor Name from Vendor Table.

    That would not require programming as such, and enable the Vendor Name in all current Purchase Price tables. But, beware that adding too many flowfields can degrade database performance.

  • Angel Arteaga Profile Picture
    Angel Arteaga 155 on at
    RE: Add field to form from another table

    Thanks both for answer the Variable solution works great

  • Verified answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Add field to form from another table

    Hey Angel,

    You have two solution here.

    1. Add a Field in the Purchase Price Table. - "Vendor Name". Write this code on the OnValidate Trigger of Vendor No.

    Vendor.GET("Vendor No.");
    "Vendor Name" := Vendor.Name.


    Vendor is the the Varibke referencing Vendor Record.

    2. Add a Varible in the Form and Name it as "Vendor Name". Write this code on the OnAfterGetRecord of the form.

    Vendor.GET("Vendor No.");
    "Vendor Name" := Vendor.Name.

    Add Vendor Name in your Page.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Add field to form from another table

    You can create new flow field "Vendor Name" in Purchase Price Table (Table ID - 7012). Refer below screen shot.

    4237.1.PNG

    Later you can add this Vendor Name in Page 7012 - Purchase Prices.

  • Angel Arteaga Profile Picture
    Angel Arteaga 155 on at
    RE: Add field to form from another table

    The form that I'm trying to modify is "Purchase Prices (7012)"

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans