Name
global.TableExtensionUtils
Description
Utility class for allowing a table to be extended - used by the table_columns UI Page
Script
var TableExtensionUtils = Class.create();
TableExtensionUtils.prototype = Object.extendsObject(AbstractAjaxProcessor, {
process: function () {
if (this.getType() == "allowExtension") {
return this.allowExtension(this.getName());
}
},
allowExtension: function (tableName) {
// Secured
if (!gs.hasRole('admin')) {
gs.logWarning("Security restricted: cannot execute", "TableExtensionUtils.allowExtension");
return;
}
var tu = new TableUtils();
return tu.createClassField(tableName);
}
});
Sys ID
3841dc325f221000b12e3572f2b47799