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 form using class reg.

(0) ShareShare
ReportReport
Posted on by 568

Hi,

I have created a form and based on some conditions the form will be get updated by clicking a button.

Up to this everything is working fine and the form is getting updated based on the conditions and I have written code in the form level.

But what I want to do is, I want to do in this class and I don't want to write any code on the form level.

Can you please suggest some advice.

Regards,

AxTechie

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hi AXTechie2120!

    There are many ways to do it.

    You can use MenuItems that call classes and put parameters through args (take a look at InventJournalTransfer form and InventJournalDeleteTrans menu item button as example)

    You can use clicked() method on the button and call your class and put parameters through parm methods.

  • Suggested answer
    startax Profile Picture
    1,845 on at

    Hi ,

    Create a class and write you current logic in class

    use simple button and override clicked() method of button. pass parameter in your class method and then refresh form data source.

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
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans