Share via


SysOperationProgress.waitForParent Method [AX 2012]

If you have two instances of the operation progress framework that are running at the same time, the child will hook up on the parent so that the user only will see one progress form on the screen.

Syntax

public boolean waitForParent([boolean value])

Run On

Called

Parameters

  • value
    Type: boolean
    Specifies whether to wait for the parent progress bar; optional.

Return Value

Type: boolean
Returns true if wait for parent has been set.

Remarks

This method represents one of the advanced features. Typically, you do not have to call this method. This method works automatically, but if the child and parent are created directly after each other, then the parent might not have been drawn yet and the child will assume the role as a parent. This will make the progress form look upside-down. If you call this method on the child, it will appear until the parent is shown.

Another solution is to call SysOperationProgress.update Method with force=true on the parent. However, you should use this method only if you have access to the child.

See Also

SysOperationProgress Class

SysOperationProgress.update Method