Name
sn_uibtk_api.ExtensionPoint
Description
No description available
Script
var ExtensionPoint = Class.create();
ExtensionPoint.prototype = Object.extendsObject(BuilderToolkitAPIBase, {
TABLE: 'sys_ux_extension_point',
FIELDS: ['app_shell', 'component', 'type', 'controller', 'name', 'sys_scope', 'controller_dependencies', 'description'],
/**
* @param fields {string[]}
*/
initialize: function(fields) {
BuilderToolkitAPIBase.prototype.initialize.call(this, this.TABLE, fields || this.FIELDS);
},
getExtensionPoints: function(encodedQuery) {
const extensionPoints = [];
const extensionPointRecordGR = this.getRecordsByQuery(encodedQuery, 'name', true);
while (extensionPointRecordGR.next()) {
const subroutes = [];
const routeGR = new AppRoute().getRecordsByQuery(`extension_point=${extensionPointRecordGR.getUniqueValue()}`, 'name', true);
if (routeGR) {
while (routeGR.next()) {
const screens = [];
const screenGR = new Screen().getRecordsByQuery(`screen_type=${routeGR.getValue('screen_type')}`, 'name', true);
if (screenGR) {
while (screenGR.next()) {
screens.push({
sysId: screenGR.getUniqueValue(),
name: screenGR.getValue('name')
});
}
}
subroutes.push({
name: routeGR.getValue('name'),
sysId: routeGR.getUniqueValue(),
routeType: routeGR.getValue('route_type'),
screenType: routeGR.getValue('screen_type'),
screens
});
}
}
const extensionPointValues = this.getValuesFromGlideRecord(extensionPointRecordGR)
extensionPoints.push({
...extensionPointValues,
subroutes
});
}
return extensionPoints;
},
type: 'ExtensionPoint'
});
Sys ID
82a7370078d82110f87761f45a19aa73