Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to show progress bar on Form methods

(0) ShareShare
ReportReport
Posted on by 5

Hi Experts,

I'm performing lengthy operations on form method (Importing a excel file with huge data).

I want to pop up a progress bar when the file is importing, where I cant move the form method code to class.

please suggest Thanks in advance.....! 

 

Regards,

Hemanth.

*This post is locked for comments

  • Blue Wang Profile Picture
    on at
    RE: How to show progress bar on Form methods

    Hi Hemanth,


    Here's a similar thread: https://community.dynamics.com/365/financeandoperations/f/765/t/291920

    Control progress bar:

    #avifiles
    SysOperationProgress simpleProgress = SysOperationProgress::newGeneral(#aviUpdate, 'Posting', 100);
    ;
    simpleprogress.setCaption('Please wait...');
    simpleProgress.incCount(5);
    simpleprogress.setText(strfmt("Percent: %1"+'%', 5));
    simpleprogress.update(true);
    //....
    simpleProgress.incCount(1);
    simpleprogress.setText(strfmt("Percent: %1"+'%', 46));
    simpleprogress.update(true);

    I hope it will help you.

  • Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: How to show progress bar on Form methods

    You can find example in the standard documentation

    docs.microsoft.com/.../how-to-create-progress-indicators

  • Suggested answer
    Mea_ Profile Picture
    60,278 on at
    RE: How to show progress bar on Form methods

    I don't see a reason why you cannot remove code from the form, but if you want to add progress bar to a form check ReleaseUpdateCockpit standard form. It has progress bar control and code to update it, so you can use it as an example. 

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,850 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans