web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Add field to form from another table

(0) ShareShare
ReportReport
Posted on by 159

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

I have the same question (0)
  • Angel Arteaga Profile Picture
    159 on at

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

  • Verified answer
    Community Member Profile Picture
    on at

    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.

  • Suggested answer
    RockwithNav Profile Picture
    8,941 Super User 2026 Season 1 on at

    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.

  • Angel Arteaga Profile Picture
    159 on at

    Thanks both for answer the Variable solution works great

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    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
    159 on at

    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
    Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans