You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would appreciate if you can add something like the following to support user defined text for the tempalte variables with different value corresponding to the text rather than deriving the value from the text. In file public/app/features/templating/templateValueSrv.js in the _updateNonQueryVariable function:
// if the options are specified then use it
if (variable.options) {
if (variable.includeAll) {
self.addAllOption(variable);
}
return variable.options;
} else {
// extract options in comma seperated string
variable.options = _.map(variable.query.split(/[,]+/), function (text) {
return { text: text.trim(), value: text.trim() };
});
}
The text was updated successfully, but these errors were encountered:
Would appreciate if you can add something like the following to support user defined text for the tempalte variables with different value corresponding to the text rather than deriving the value from the text. In file public/app/features/templating/templateValueSrv.js in the _updateNonQueryVariable function:
// if the options are specified then use it
if (variable.options) {
if (variable.includeAll) {
self.addAllOption(variable);
}
return variable.options;
} else {
// extract options in comma seperated string
variable.options = _.map(variable.query.split(/[,]+/), function (text) {
return { text: text.trim(), value: text.trim() };
});
}
The text was updated successfully, but these errors were encountered: