Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample code for Aras Innovator to enable/disable a CUI button based on the items selected in the grid
if (inArgs.isReinit) {
var topWindow = aras.getMostTopWindowWithAras(window);
var workerFrame =;
if (workerFrame && workerFrame.grid && workerFrame.grid.getSelectedItemIds().length > 1)
return { "cui_disabled": false }; // enable the button
return { "cui_disabled": true }; // disable the button
return {}; // keep the current state of the button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.