Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Questions / Enhancements to MultiComboBoxItem and ComboBoxItem

    Hi Isomorphic,

    I played around with your code from here (v12.0p_2018-11-20) in this sample and found a bug and have an enhancement suggestion.

    Code:
    var suppliesForm = isc.DynamicForm.create({
        top: 115,
        ID: "selectedSupplyItems",
        width: "100%",
        numCols: 1,
        titleOrientation: "top",
        items: [{
            name: "supplies",
            title: "MultiComboBoxItem+tree",
            editorType: "MultiComboBoxItem",
    
            comboBoxProperties: {
                dataSetType: "tree",
                textMatchStyle: "substring",
                minimumSearchLength: 2
            },
            optionDataSource: "supplyCategory",
            displayField: "categoryName",
            valueField: "categoryName",
            autoFetchData: true
        },{
            name: "supplies3",
            title: "ComboBoxItem+tree",
            editorType: "ComboBoxItem",
            optionDataSource: "supplyCategory",
            textMatchStyle: "substring",
            dataSetType: "tree",
            displayField: "categoryName",
            minimumSearchLength: 2,
            valueField: "categoryName",
            autoFetchData: true
        },{
            name: "supplies2",
            title: "ComboBoxItem",
            editorType: "ComboBoxItem",
            optionDataSource: "supplyCategory",
            textMatchStyle: "substring",
            displayField: "categoryName",
            minimumSearchLength: 2,
            valueField: "categoryName",
            autoFetchData: true
        }]
    });
    • If you start slowly typing "Kits" in the MultiComboBoxItem+tree or ComboBoxItem+tree, you'll see requests for "Ki", "Kit", "Kits", while the 1st one should have been enough, as it returns all (=0) matching records and the others can't possibly find more entries, so client side filtering should be applied. This is working as expected in the normal ComboBoxItem.
    • As an (possibly big) enhancement you could search also children for the value and then open all parent nodes on the way to the found children, so that one can find "First Aid Kits" by typing "kits" without opening / knowing about "First Aid" before.
    Especially the enhancement would mean a big improvement and I can already think of an usecase for it.

    Best regards
    Blama
    Last edited by Blama; 22 Nov 2018, 03:49. Reason: Did not copy current sample code before

    #2
    We're looking into improving handling of criteria narrowing in ResultTrees, so that if possible we don't hit the server, but it will be considered an improvement rather than a bugfix, so it's not going to happen immediately.

    Comment

    Working...
    X