xrm-mock icon indicating copy to clipboard operation
xrm-mock copied to clipboard

`getAttribute('name').controls` should always contain controls that were added for the attribute

Open skfd opened this issue 3 years ago • 0 comments

There is at least two ways to create controls in xrm-mock:

  • implicitly by just running Attribute.createLookup without passing controls parameter (default control is created);
  • by explicitly passing ControlComponent to Attribute.createLookup;
  • by running Control.createLookup.

But looks like neither of this functions fill getAttribute('name').controls array. This list is useful when we want to apply some validation to all controls of the attribute, for example.

skfd avatar Aug 18 '21 14:08 skfd