Name
global.ChoiceList
Description
Choice List object
Script
var ChoiceList = Class.create();
ChoiceList.prototype = {
initialize : function(tableName, fieldName) {
this.tableName = tableName;
this.fieldName = fieldName;
},
getValue: function(label) {
var choiceList = GlideChoiceList.getChoiceList(this.tableName, this.fieldName);
return choiceList.getValueOf(label);
},
getLabel: function(value) {
var choiceList = GlideChoiceList.getChoiceList(this.tableName, this.fieldName);
return choiceList.getLabelOf(value);
}
}
Sys ID
e772aab10a0006d91c94961fe730938a