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)

How to check if form datasource has written yet?

(0) ShareShare
ReportReport
Posted on by 152

If you have a row in a form and you type some data into it, then click a button, the button can trigger the row saving. If you navigate to another row, that triggers a save (write) too.


How can I tell when the user clicks the button if the row has a pending save/write before the super() call?

*This post is locked for comments

I have the same question (0)
  • Sukrut Parab Profile Picture
    71,735 Moderator on at

    Well when you leave the record its already saved . Then why do you want to check  if its saved or not ? You can always try to select same record and see if you get anything.

  • Wmyk Profile Picture
    152 on at

    In the Form\WMSPickingRegistration, if you put a value in the trans record that is greater than the available inventory, during the call to DataSource\WMSOrderTrans\write(), it calls logic that errors and reverts your entry.

    Well when you click the "Update selected button" while on an un-saved row, what happens is the row saves (write()) and errors, which reverts your entry, then the button logic executes and actually performs an update on the previously entered values. Users are missing this because it happens in one quick, atomic sequence.

    So I need to determine if the record hasn't been saved yet.

  • Suggested answer
    Alex Kwitny Profile Picture
    395 on at

    Look at `\Forms\InventTransRegister`

    if (!bufCmp(tmpInventTransWMS, tmpInventTransWMS.orig()))
    {
        return; // record wasn't successfully saved
    }


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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans