Create progress bar in dynamics ax part2

Description:-

This post is again useful for those developers who are new to X++ programming and would like to use progress bars or Hour glass indicators while some business logic is running, hinting the user that something is happening in the background. in this example we will see about hourglass indicators.
 
There are many ways to display operations in progress

1) Hourglass Indicators
2) Progress Bars
3) Progress controls on the forms
4) Animate Controls

Hour Glass Indicators Example:

Use startlengthyoperation() and endlengthyoperation() between our business logic

Example :-

static void HourGlassMousePointer(Args _args)
{
  int i;
  str value;
  ;
  startLengthyOperation();
  for( i = 1; i <= 200000; i++)
  {
    value += int2str(i) + ','; // some business logic
  }
  endLengthyOperation();
}

Below is how the hourglass indicator looks

Related Posts

Previous
Next Post »

Thanks for comments.....