Name
global.WorkspaceUIActionsProvider
Description
Provides a filter to which UI Actions are available to be selected in a UI Action Group.
Script
var WorkspaceUIActionsProvider = Class.create();
WorkspaceUIActionsProvider.prototype = {
getActions: function(current) {
var stringQueryPostfix = '^active=true^form_button_v2=true^ORform_menu_button_v2=true';
var tableName = String(current.ui_action_layout.table || '');
if (tableName === '')
return 'table=global' + stringQueryPostfix;
var tables = GlideDBObjectManager.getTables(tableName).toArray().concat();
tables.push('global');
return 'tableIN' + tables + stringQueryPostfix;
},
type: 'WorkspaceUIActionsProvider'
};
Sys ID
1494b902c7120010ac43625788c260cf