Last active
April 18, 2017 12:17
-
-
Save pawelgradecki/bf04e86f7dcbfed27c2c8b85829eb154 to your computer and use it in GitHub Desktop.
GridRowSelected disable one column
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gridRowSelected(context) { | |
context.getFormContext().getData().getEntity().attributes.forEach(function (attr) { | |
if (attr.getName() === "odx_monthid") { | |
attr.controls.forEach(function (c) { | |
c.setDisabled(true); | |
}) | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment