Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

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 ?

Categories:
  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 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,861 Moderator 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,861 Moderator 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 58,878 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans