Announcement

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

    SelectItem: open sub grid - Error Message

    Hi,

    with the latest build I get the error message mentioned on the bottom when I click on a SelectItem for opening a subgrid. With older Builds from e.g. 08/31/2017 it is working with the same code.

    Thanks
    Andy



    SmartGWT: 6.1p Build 09/11/2017
    OS: Ubuntu
    Browser: Chrome, Firefox

    Code:
    ListGridField idField = new ListGridField( "good_id", "Id" );
    idField.setWidth( "8%" );
    idField.setHidden( true );
    ListGridField nameField = new ListGridField( "name", "Name" );
    nameField.setWidth( "25%" );
    ListGridField gtinField = new ListGridField( "gtin", "GTin" );
    gtinField.setWidth( "10%" );
    ListGridField variantField = new ListGridField( "good_variant_name", "Variant" );
    variantField.setWidth( "15%" );
    ListGridField typeField = new ListGridField( "good_type_name", "Type" );
    typeField.setWidth( "5%" );
    ListGridField addittionalInfoField = new ListGridField( "additional_info", "Info" );
    addittionalInfoField.setWidth( "15%" );
    
    SelectItem selectItem = new SelectItem( "ident" );
    selectItem.setOptionDataSource( getDataSource() );
    selectItem.setWidth( "*" );
    selectItem.setPickListWidth( 950 );
    selectItem.setPickListFields( idField, nameField, gtinField, typeField, variantField, addittionalInfoField );
    selectItem.setValueField( CItemSupplyGoods.good_id );
    selectItem.setDisplayField( CItemSupplyGoods.name );
    
    ListGrid listGrid = new ListGrid();
    listGrid.setShowFilterEditor( true );
    listGrid.setEmptyCellValue( "---" );
    listGrid.setWrapCells( true );
    listGrid.setEdgeMarginSize( 3 );
    listGrid.setShowShadow( false );
    
    selectItem.setPickListProperties( listGrid );
    
    FormItemIcon iconRemove = new FormItemIcon();
    iconRemove.setSrc( "icons/16x16/remove.png" );
    iconRemove.setName( "Remove" );
    iconRemove.setPrompt( "Remove" );
    
    item.setIcons( iconRemove );

    When I click on the SelctItem to open the SubGrid I get the following message:

    Code:
    11:13:46.726:MUP4:WARN:Log:TypeError: _1 is null
    Stack from error.stack:
        ListGrid.shouldAlwaysShowOperatorIcon() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Grids.js?isc_version=11.1d.js:752
        RecordEditor.updateFilterOperators() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Grids.js?isc_version=11.1d.js:3162
        RecordEditor.draw() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Grids.js?isc_version=11.1d.js:3162
        Layout.layoutChildren() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Foundation.js?isc_version=11.1d.js:335
        ListGrid.layoutChildren() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Grids.js?isc_version=11.1d.js:1154
        Layout.drawChildren() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Foundation.js?isc_version=11.1d.js:244
        Canvas.draw() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:2499
        Class.invokeSuper() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:276
        ListGrid.draw() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Grids.js?isc_version=11.1d.js:1231
        .placePickList() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:2062
        .$19l() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:1926
        .showPickList() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:1925
        SelectItem.showPickList() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:2134
        SelectItem.showPicker() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:2134
        SelectItem.handleClick() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:2129
        DynamicForm.bubbleItemHandler() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:531
        DynamicForm.handleItemClick() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:537
        DynamicForm.handleClick() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Forms.js?isc_version=11.1d.js:532
        [c]EventHandler.bubbleEvent() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:2021
        [c]EventHandler.handleClick() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:1877
        EventHandler._handleMouseUp() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:1862
        [c]EventHandler.handleMouseUp() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:1853
        [c]EventHandler.dispatch() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:2107
        anonymous() @ com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Core.js?isc_version=11.1d.js:57
    
    11:13:46.824:MUP4:WARN:Log:Uncaught JavaScript exception: TypeError: _1 is null in http://127.0.0.1:8888/com.uds.webadmin.GBookingAdmin/sc/modules/ISC_Grids.js?isc_version=11.1d.js, line 752

    #2
    Thanks for the report - this is fixed for tomorrow's builds.

    Comment


      #3
      Thanks for fixing this!

      Comment

      Working...
      X