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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Updating a column automatically, when another column is updated in a table

(0) ShareShare
ReportReport
Posted on by

Hello ,

as mentioned in the Subject, how can I update a value automatically when the the other is updated? 

I want to update the field "InventLocationId" in the sales line . the "InventLocationId" in the Intercompany PO will be automatically updated .

I'm assuming that I can accomplish this by putting my code in "Modify" method in "InventLocationId" field in the "InventDim" table in both "purchTable" and "SalesTable" Forms ? 

thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    To do this in a more elegant way, you could place your code in the insert() or update() methods of the table, and check if (this.orig().InventLocationId != this.InventLocationId), then change it in the other table. This will ensure that you only modify the connected values if the user is saving the changes.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans