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 AX (Archived)

Update sales order lines upon modifying sales order header

(0) ShareShare
ReportReport
Posted on by 143

Dear All,

How to Update in sales order lines after modifying sales order header.

Ex: after changing language from EN to FR in header , changes to be reflecting in sales lines

 

Regards,

Vishu

*This post is locked for comments

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    First you need to specify what you mean by changing of the language in the sales order line.

    Sales order line has no language information (LanguageId), only the header does.

    Some information on the order line is initialized based on the language, so you would need to reinitialize those fields if the language is changed.

    You also need to consider that packing slips, confirmations and invoices might already been posted for the lines. You can't change anything that has been posted.

    Once you are ready with your design, you can add this logic in Classes\SalesTableType\update

    if (salesTable.LanguageId != salesTable_Orig.LanguageId)
    {
        // Run your custom logic for updating the fields on sales lines for this order
    }


  • Vishu Beniwal Profile Picture
    143 on at

    First thanks Sir for reply

    There is a customize field in salesTable called margin percentage I wanna flow the value of margin percentage from header to line when ever user change it with a dialog box with yes no enum Yes to update in salesLine and no to cancel. So I wanna know what to write on 'On modified event for this'?

  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    For that I would use the modified method of your new field in SalesTable data source of SalesTable form.

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 AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans