Name
global.TableNameFieldValueLabel
Description
Primarily used by dictionary read_only table_name field, which does not contain a select control, therefore needs to use ajax to look up the field value s display label in order to update the field display value on the form
Script
var TableNameFieldValueLabel = Class.create();
TableNameFieldValueLabel.prototype = Object.extendsObject(AbstractAjaxProcessor, {
type: 'TableNameFieldValueLabel',
process: function() {
var name = this.getParameter('sysparm_name');
if (!name)
return '';
var td = GlideTableDescriptor.get(name);
if (td.isValid()) {
var label = td.getLabel();
if (label)
return label + ' [' + name + ']';
}
return name;
}
});
Sys ID
dde78f9aff02101096ee5b9f793bf114