Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Object.notifyAll Method [AX 2012]

Releases a lock on the object that was issued by the wait method on this object.

public void notifyAll()

Run On

Called

In the current implementation of this method, there is no difference between calling the notify method and the notifyAll method.

Forms will automatically call the notifyAll method when the user closes the form or presses the Apply button.

The following example demonstrates the usage of the notifyAll method.

public void doWork() 
{ 
      //Do some work. 
 
      this.setTimeOut(identifierstr(workerFunction), 0); 
      this.wait(); // block and wait for notify. 
} 
 
public void workerFunction() 
{ 
// Do some work. 
 
//... 
 
// Work is done. Notify an unblock. 
this.notify(); 
} 

Community Additions

ADD
Show:
© 2015 Microsoft