Skip to content

Commit dbbb1cf

Browse files
committed
Allow SimpleCombo to be set using concatenated string
1 parent acabd2d commit dbbb1cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

LDK/resources/web/LDK/field/SimpleCombo.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Ext4.define('LDK.form.field.SimpleCombo', {
1313
queryMode: 'local',
1414
triggerAction: 'all',
1515
joinReturnValue: false,
16+
delimiter: ';',
1617

1718
initComponent: function(){
1819
Ext4.apply(this, {
@@ -62,5 +63,15 @@ Ext4.define('LDK.form.field.SimpleCombo', {
6263

6364
getToolParameterValue : function(){
6465
return this.getSubmitValue();
66+
},
67+
68+
setValue: function(val) {
69+
if (this.multiSelect && val && Ext4.isString(val)) {
70+
val = val.split(this.delimiter);
71+
this.callParent([val]);
72+
}
73+
else {
74+
this.callParent(arguments);
75+
}
6576
}
6677
});

0 commit comments

Comments
 (0)