Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Auto-fill the Data on the field

(0) ShareShare
ReportReport
Posted on by 105

Hi all,

I have created a new field called Unit Price in the Transfer Line table and then I added that field in Transfer Order subform as well. Now when I create a Transfer order and select Item no I want also the Unit price(In my Transfer Line) of that Item to populate directly from the Item card. The same way description and unit of measure populate.

pastedimage1642770764788v1.png

Am using NAV 2015. 

Thank you for your constant assistance.

  • Maro9595 Profile Picture
    105 on at
    RE: How to Auto-fill the Data on the field

    Thank you ZUH

  • Maro9595 Profile Picture
    105 on at
    RE: How to Auto-fill the Data on the field

    thank you Josh

  • Verified answer
    YUN ZHU Profile Picture
    83,249 Super User 2025 Season 1 on at
    RE: How to Auto-fill the Data on the field

    Hi, as Josh mentioned, you need to add some code to the OnValidate trigger of the “Item No.” field in Transfer Line table (5741).

    For example:

                trigger OnValidate()
                var
                    Item: Record Item;
                begin
                    if Item.Get("Item No.") then
                        "Unit Price" := Item."Unit Price";
                end;

    pastedimage1642979763856v1.png

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: How to Auto-fill the Data on the field

    Add your code to the OnValidate trigger of the “Item No.” field

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,014

#2
YUN ZHU Profile Picture

YUN ZHU 950 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 624

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans