Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  FilterinSelect EntryTemplate editor

    Posted Tue May 25, 2021 12:18 PM

    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


  • 2.  RE: FilterinSelect EntryTemplate editor
    Best Answer

    Posted Tue May 25, 2021 01:57 PM

    just add

    this.queryExpr = "*${0}*";

    this.autoComplete = false;

    solved the issue

    to the post create function



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: FilterinSelect EntryTemplate editor
    Best Answer

    Posted Wed May 26, 2021 02:21 AM

    You may also check if useStartsWithChoiceListFilter was enabled

    https://www.ibm.com/support/pages/when-filtering-choice-list-list-displays-choices-contain-input-text-instead-choices-start-input-text



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: FilterinSelect EntryTemplate editor
    Best Answer

    Posted Wed May 26, 2021 01:17 PM

    Thank you,

    It is not set, but good to know that there is an option to add global var that will effect on the system.

    There is some list of other var that can be set on additional settings pane that will effect on other things?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: FilterinSelect EntryTemplate editor
    Best Answer

    Posted Thu May 27, 2021 03:45 AM

    Yes, the additional settings affects other things. You may do a search on ICN Knowledge Center or IBM Support web site to see the details.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration