Share via


DimensionDefaultingControllerBase.ensureControlExists Method [AX 2012]

Ensures the specified dimension control exists in cases where it has not already been created.

Syntax

public void ensureControlExists(str _controlName)

Run On

Called

Parameters

  • _controlName
    Type: str
    The name of the control.

Remarks

This method is used to ensure the physical dimension controls exist. One example of usage is by the test infrastructure which attempts to find controls without first starting the tab that contains them. This is problematic with dimensions because dimension controls are lazy-loaded. To work around the issue this method will force the control creation at the time the control is needed if it has not already been created.

See Also

Reference

DimensionDefaultingControllerBase Class