How to use progress control on the form in dynamics ax


Description:-


Create a new progress control and change the autodeclaration property of the progress control to yes as shown in the figure.

In the init() or run() method of the form modify the code as shown below.

SysDictClassdictClass;
int i;
intclassCount;
classIdclassId;
Dictionary dictionary;
;
super();
dictionary = new Dictionary();
classCount = dictionary.classCnt();
progress.rangeLo(1);
progress.rangeHi(classCount);
progress.pos(1);
progress.step(1);
for (i=1; i <= classCount; i++)
{
  progress.pos(i);
  dictClass = new SysDictClass(dictionary.classCnt2Id(i));
  info(dictClass.name());
}

Related Posts

Previous
Next Post »

Thanks for comments.....