Announcement

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

    6.0p bug (listGrid expansion)

    I have a problem with the 6.0p upgrade from 5.1p: The listgrid is empty and I get an error. This with 6.0p power 6.4.16.
    The same code (with the two 6.0 API calls commented out) works with 5.1p 7.4.16.


    EntryPoint:
    Code:
    public void onModuleLoad() {
    
            final ListGrid countryGrid = new ListGrid() {
                @Override
                protected Canvas getExpansionComponent(final ListGridRecord record) {
                    HLayout hlayout = new HLayout();
                    LayoutSpacer space = new LayoutSpacer();
                    space.setHeight(100);
                    hlayout.addMember(space);
    
                    VLayout layout = new VLayout(5);
                    layout.setPadding(10);
    
                    hlayout.addMember(layout);
                    return hlayout;
                }
            };
            countryGrid.setWidth(500);
            countryGrid.setHeight(300);
            countryGrid.setDataSource(WorldXmlDS.getInstance());
    
            ListGridField nameField = new ListGridField("countryCode", "name", 50);
            ListGridField vornameField = new ListGridField("countryName", "vorname");
            ListGridField gebDatumField = new ListGridField("capital", "geb datum");
    
            countryGrid.setFields(nameField, vornameField, gebDatumField);
    
            countryGrid.setAutoFetchData(false);
            
            DSRequest prop = new DSRequest(DSOperationType.FETCH);
            prop.setOutputs("f_name,f_vorname,f_geb_datum,f_schueler_id");
            
            
            countryGrid.setShowAllRecords(false);
            
            countryGrid.setShowFilterEditor(true);
            countryGrid.setAllowFilterOperators(true);
            countryGrid.setCanEdit(false);
            countryGrid.setAlwaysShowOperatorIcon(true);
            countryGrid.setFilterOnKeypress(false);
            countryGrid.setCanExpandRecords(true);
            
            
            countryGrid.fetchData(null, null, prop);
    
            countryGrid.draw();
        }
    Error:
    Code:
    13:35:48.195:WARN:Log:TypeError: Cannot set property 'prompt' of undefined
    Stack from error.stack:
        ListGrid.updateOperatorIcon(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Grids.js:2703:163
        ListGrid.setFieldSearchOperator(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Grids.js:2701:6
        RecordEditor.draw(<no args: exited>) on [RecordEditor ID:isc_TestingModule_1_0$31t] @ ISC_Grids.js:3211:246
        Layout.layoutChildren(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Foundation.js:349:306
        ListGrid.layoutChildren(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Grids.js:1306:32
        Layout.drawChildren(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Foundation.js:258:609
        Canvas.draw(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Core.js:2187:253
        [c]Class.invokeSuper(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Core.js:295:162
        ListGrid.draw(<no args: exited>) on [ListGrid ID:isc_TestingModule_1_0] @ ISC_Grids.js:1377:612
        undefined.draw_0_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:101230:13
        undefined.onModuleLoad_4_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:276196:20
        Array.init_2_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:45605:49
        initializeModules_0_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:221:30
        apply_0_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:10981:28
        entry0_0_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:11051:14
        <anonymous>(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:11017:14
        gwtOnLoad_0_g$(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:234:40
        <anonymous>(<no args: exited>) @ 54E34EF3B67EC3DE25B32AAB54B5353D.cache.js:290905:1

    #2
    This issue has been addressed for internal ListGrid fields (expansion, rowNumber, checkbox) - you can try the fix out in builds dated April 8 and later.

    Comment


      #3
      When are these available?
      5.1, 5,0 have 8.4 builds, but 6.0 not ?

      Comment


        #4
        The overnight build process hasn't finished yet.

        Comment

        Working...
        X