Dear support, i had a demand to develop reset button next to EDS dependent field. I Created new EDITOR (FilteringSelect Editor) and set it to the relevant field, all works fine except the filtering part while user start to type.
the filter is filtering only by the "preffix" instead "match all cases " as happen in all other EDS field inside the entryTemplate.
this is my code.
like if the user type "a" choiceList will show only the words that are start with the letter "a", and not all words that contains "a" inside them as happen in all other build-in EDS fields.
i saw that "idx/form/FilteringSelect" use
dijit/form/FilteringSelect and inside the
dijit/form/FilteringSelect there is a use of dijit/form/ComboBoxMixin,
in this file there is a use of dijit/form/_AutoComplaterMixin
that use 2 function.
_openResultList: function(/*Object*/ results, /*Object*/ query, /*Object*/ options)
_startSearch: function
Do i have to override this 2 function?
There is some property that tell i souled to set to make my FilterinSelect editor "match all cases" while user start to type?
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/sniff",
"dojo/dom-class",
"dojo/dom-style",
"idx/form/FilteringSelect",
"dijit/form/_TextBoxMixin",
"dojo/keys",
"pvr/widget/editors/mixins/_EditorMixin",
"pvr/widget/editors/mixins/_StoreMixin"
], function(declare, lang, sniff, domClass, domStyle, FilteringSelect,_TextBoxMixin ,keys,_EditorMixin, _StoreMixin) {
var FilteringSelectEditor = declare("EntryTemplatesPropertyEditorForEds*******PluginDojo.edsFieldWithResetBtnEditor", [
FilteringSelect,
_EditorMixin,
_StoreMixin
], {
postCreate: function() {
this.inherited(arguments);
if(!this.readOnly){
// this.missingMessage = ecm.messages.property_missingMessage;
var resetButton = new dijit.form.Button({
name: "resetButton",
label: "ניקוי נתונים",
}, "resetButton");
domClass.add(resetButton.domNode, "dijitInline");
domStyle.set(resetButton.domNode, "margin-right", "2px");
domStyle.set(resetButton.domNode, "margin-bottom", "1px");
resetButton.startup();
dojo.place(resetButton.domNode,this._aroundNode,"after");
dojo.connect(resetButton, "onClick", lang.hitch(this,function(){
if(this.getValue() == "" || this.getValue() == undefined ){
return;
}
debugger;
this.set('value',"-2");
}));
}
},
isValid: function(isFocused) {
return this.inherited(arguments);
},
_openResultList: function(/*Object*/ results, /*Object*/ query, /*Object*/ options){
_startSearch: function
});
return FilteringSelectEditor;
});
#IBMContentNavigator(ICN)#Support#SupportMigration