Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Sales Lines Page Customization

Posted on by 467

I tried to Customize the sales lines Page (516) Using the NAV Developer to add the Bill To name And Sell To Name to the sales Line list as below 

7178.dev.png

when i open the sales line the values did not populated 

saleslines1.png

but when i chose one order and press on show order and close the screen the system take the values of the order that i opened and populated for all the lines which is not correct 

salesline2.png

any idea the reason of that ?

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Sales Lines Page Customization

    If you add any fields other then the source of the page you need to retrieve that record in the OnAfterGetRecord of that page, check the page 10010 for example where it show fields from the Sales Header table but the source of the table is Sales Line.  Check the code added in the OnAfterGetRecord trigger.

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Sales Lines Page Customization

    It will not work. Currently, the SalesHeader record will only be retrieved when you click the Show Document.

    You will need to put the code to retrieve the SalesHeader record under OnAfterGetCurrRecord.

  • Samer Baskhayroun Profile Picture
    Samer Baskhayroun 467 on at
    RE: Sales Lines Page Customization

    i did not write any code i just added in the page designer

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Sales Lines Page Customization

    Where did you put the code to get the sales header ? OnAfterGetCurrRecord ?

  • Samer Baskhayroun Profile Picture
    Samer Baskhayroun 467 on at
    RE: Sales Lines Page Customization

    i added from the Sales Header As below screen shots 

    dev2.png

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Sales Lines Page Customization

    Bill To name And Sell To Name are fields from Sales Line table or Item table?

    if Item table then what code and where did you write?

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