Announcement

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

    separateSpecialValues bug

    Hello,

    I am trying to use a SelectItem as editor in a grid with separateSpecialValues set and it produces an exception.

    SmartClient version: v10.1p_2016-05-14/PowerEdition Deployment
    Browser: Chrome 50.0.2661.102 m

    Test case:
    Code:
    var dsList = DataSource.create({ fields: [{name: 'id'},{name: 'folderId'}], cacheData:[
        {id: 1},
        {id: 2},
        {id: 3}
    ], clientOnly:true});
    
    var dsFolder = DataSource.create({ fields: [{name: 'id'},{name: 'name'}], cacheData:[
        {id: 1, name: "Folder 1"},
        {id: 2, name: "Folder 2"},
        {id: 3, name: "Folder 3"}
    ], clientOnly:true});
    
    ListGrid.create({
        dataSource:dsList, autoFetchData:true, canEdit:true,
        fields:[
            {name:'id'},
            {name:'folderId',
                editorProperties: {
                    editorType: 'SelectItem',
                    optionDataSource: dsFolder,
                    valueField: 'id', displayField: 'name',
                    pickListProperties: {
                        showFilterEditor: true
                    },
                    pickListFields: [
                        {name: 'name'}
                    ],
                    specialValues: {"**emptyValue**": "None", "-1": "Not Applicable"},
                    separateSpecialValues: true
                }
            }
        ]
    });
    Strack trace:
    Code:
    Stack from error.stack:
        setSeparateSpecialValues(<no args: exited>) on [SelectItem ID:isc_SelectItem_0 name:folderId] @ ISC_Forms.js:43440:32
        setProperties(<no args: exited>) on [SelectItem ID:isc_SelectItem_0 name:folderId] @ ISC_Core.js:8083:29
        makeEditForm(<no args: exited>) on[ListGrid ID:isc_ListGrid_0] @ ISC_Grids.js:48623:26
        showInlineEditor(<no args: exited>) on[ListGrid ID:isc_ListGrid_0] @ ISC_Grids.js:47976:32
        _startEditing(<no args: exited>) on[ListGrid ID:isc_ListGrid_0] @ ISC_Grids.js:47771:10
        fireCallback(callback=>Obj, argNames=>null, args=>null, target=>null, catchErrors=>true) on [Class Timer] @ ISC_Core.js:6812:36
        _fireTimeout(ID=>"_timeout20", tmrID=>21, delayedTmrID=>undef) on [Class Timer] @ ISC_Core.js:33358:10
        <anonymous>() @ ISC_Core.js:33280:19
    Thanks!

    To reproduce the problem: double-click on record to edit but it doesn't start editing but throws the exception instead. Removing the - separateSpecialValues: true - line eliminates the problem.

    #2
    Hello Isomorphic.
    I found this old post - I am now experiencing the exact same problem on v12.0p_2020-02-13

    Thanks for looking into this.
    Gil

    Comment


      #3
      Thanks for the notification. This should be resolved in nightly builds going forward

      Regards
      Isomorphic Software

      Comment

      Working...
      X