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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

while closing the form records should delete in the form, how to writ the code in which method?

(0) ShareShare
ReportReport
Posted on by

while closing the form records should delete in the form, how to writ the code in which method?

*This post is locked for comments

I have the same question (0)
  • Piyush Adhikari Profile Picture
    2,546 on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    Close method

  • Community Member Profile Picture
    on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    Hi

    could you explain the code?

  • Piyush Adhikari Profile Picture
    2,546 on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    Form Method Sequences:

    very useful

    kollidynamics.blogspot.in/.../sequence-of-methods-in-form-level-in-ax.html

  • Piyush Adhikari Profile Picture
    2,546 on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    simply call delete / do delete/or    delete_from

  • Bilal Issa Profile Picture
    4,370 on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    Hi,

    please consider using temp data source , and that will delete records once the form is closed without writing code.

    Regards,

    Bilal

  • Piyush Adhikari Profile Picture
    2,546 on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    Yes.

    temp data source is a good choice if you want to delete all the records

    but not in case if wants to delete selected records.

  • Anton Venter Profile Picture
    20,301 Super User 2025 Season 2 on at
    RE: while closing the form records should delete in the form, how to writ the code in which method?

    If you use a temporary table, the data will be gone if you close the 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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans