|
|
@ -21077,7 +21077,8 @@ BI.SQLEditor = BI.inherit(BI.Widget, { |
|
|
|
value: "", |
|
|
|
value: "", |
|
|
|
lineHeight: 2, |
|
|
|
lineHeight: 2, |
|
|
|
showHint: true, |
|
|
|
showHint: true, |
|
|
|
supportFunction: false |
|
|
|
supportFunction: false, |
|
|
|
|
|
|
|
supportParam: false |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -21201,14 +21202,14 @@ BI.SQLEditor = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
var self = this, result; |
|
|
|
var self = this, result, o = this.options; |
|
|
|
this.refresh(); |
|
|
|
this.refresh(); |
|
|
|
self.editor.setValue(""); |
|
|
|
self.editor.setValue(""); |
|
|
|
result = this._analyzeContent(v || ""); |
|
|
|
result = this._analyzeContent(v || ""); |
|
|
|
BI.each(result, function (i, item) { |
|
|
|
BI.each(result, function (i, item) { |
|
|
|
var fieldRegx = /\$[\{][^\}]*[\}]/; |
|
|
|
var fieldRegx = /\$[\{][^\}]*[\}]/; |
|
|
|
var str = item.match(fieldRegx); |
|
|
|
var str = item.match(fieldRegx); |
|
|
|
if (BI.isNotEmptyArray(str)) { |
|
|
|
if (BI.isNotEmptyArray(str) && o.supportParam) { |
|
|
|
self.insertParam(str[0].substring(2, item.length - 1)); |
|
|
|
self.insertParam(str[0].substring(2, item.length - 1)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
self.insertString(item); |
|
|
|
self.insertString(item); |
|
|
|