How to use the xrm-mock.AutoLookupControlMock function in xrm-mock

To help you get started, we’ve selected a few xrm-mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github camelCaseDave / xrm-mock-generator / src / xrm-mock-generator / control.js View on Github external
Control.prototype.createStringControl = function (name, label, isVisible, isDisabled, attribute) {
        var stringControl = new XrmMock.StringControlMock(
            new XrmMock.AutoLookupControlMock(
                new XrmMock.StandardControlMock({
                    control: createControl(name, label, isVisible),
                    attribute: attribute,
                    disabled: isDisabled,
                    uiStandardElement: Ui.createStandardElement(label, isVisible)
                new XrmMock.UiKeyPressableMock()