Hello.
On AX 2009,
I run a method that takes too long time (on form).
I want to set an hourglass cursor on form.
What is the correct way doing that?
I did on code:
void myfunction() {
...
#WINAPI
....
WinApi::setCursor(#IDC_WAIT);
element.lockWindowUpdate(true);
// doing long time consuming ...
element.lockWindowUpdate(false);
}
Thanks :)