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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Update or Refresh Form using X++ in Events or in Class Dynamics Finance and Operations

(0) ShareShare
ReportReport
Posted on by 75
To update or refresh a form while using a main(Args _args) function of a class you need to get the caller as FormRun object. 
     FormRun formRun = _args.caller();
     if(formRun)
     {
        #Task
        formRun.task(#taskRefresh);
     }
let say you want to use this code in an event then you will use it like this:
     
    [FormControlEventHandler(formControlStr(SalesTable, ImportFromExcel), FormControlEventType::Clicked)]
    public static void ImportFromExcel_OnClicked(FormControl sender, FormControlEventArgs e)
    {
            FormRun formRun = sender.formRun();
            if(formRun)
            {
                #Task
                formRun.task(#taskRefresh);
            }
    }
I have the same question (0)
  • Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at

    Hello,

    I can see your trying to write a blog post. This is not the right place to do. You can request for a blog 

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans