Results 1 to 2 of 2

Thread: Plugin 6.0.8 selModel/type=spreadsheet requires Ext.grid.selection.SpreadsheetModel

    Success! Looks like we've fixed this one. According to our records the fix was applied for IDEAPLUGIN-340 in 6.0.9.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2014
    Location
    Gilbert, AZ
    Posts
    12

    Default Plugin 6.0.8 selModel/type=spreadsheet requires Ext.grid.selection.SpreadsheetModel

    In moving from ExtJS 5.1.0/Cmd 5.1.2.52/MyEclipse2014 to ExtJS 6.0.1/Cmd 6.1.0.65/IntelliJ 15.0.3/JetBrains Plugin 6.0.8. I had a 404 error show up looking for '.js' file with no name and the page would no longer display:

    net.jpg

    The root cause was that I was missing Ext.grid.selection.SpreadsheetModel. I had it in ExtJS5 version, but JetBrains plugin suggested that I remove it. Attached is the source code and a screenshot of the suggestion:

    jet.png
    Code:
    /**
     * This class is the main view for the application. It is specified in app.js as the
     * "mainView" property. That setting automatically applies the "viewport"
     * plugin causing this view to become the body element (i.e., the viewport).
     *
     */
    Ext.define('SystemThreads.view.main.Main', {
        extend: 'Ext.container.Viewport',
        xtype: 'app-main',
    
        requires: [
            'Ext.container.Viewport',
            'Ext.grid.Panel',
            'Ext.panel.Panel',
            'Ext.grid.filters.Filters',
            'Ext.grid.plugin.Clipboard',
            'Ext.grid.selection.SpreadsheetModel',
            'Ext.layout.container.Border',
            'Ext.toolbar.Fill',
            'SystemThreads.store.ThreadStore',
            'SystemThreads.view.main.MainController',
            'SystemThreads.view.main.MainModel'
    ],
    
    
        controller: 'main',
        viewModel: {
            type: 'main'
    },
    
        layout: 'border',
    
        items: [{
            xtype: 'panel',
            layout: { type: 'border' },
            frame: false,
            border: false,
            loader: {
                url: 'http://localhost:81/header.jsp',
                autoLoad: true,
                params: {
                    targetPage: 'SYSTEMTHREADS'
    }
            },
            region: 'north',
            height: 60
    },{
            xtype: 'panel',
            frame: false,
            border: false,
            region: 'center',
            layout: { type: 'border' },
            items: [{
                xtype: 'panel',
                frame: false,
                border: false,
                loader: {
                    url: 'http://localhost:81/secure/system/header.jsp',
                    autoLoad: true,
                    params: {
                        targetPage: 'SYSTEMTHREADS'
    }
                },
                region: 'north',
                height: 20
    },{
                xtype: 'grid',
                region: 'center',
                store: {
                    type: 'threads',
                    listeners: {
                        load: function(store) {
                            console.log('loaded');
                            var c = store.getTotalCount();
                            Ext.ComponentManager.onAvailable( 'componentTotalCount', function(comp) {
                                 comp.update({'totalcount':c});
                            },this);
                        }
                    }
                },
                columns: [
                    { text: 'ID',  dataIndex: 'ID', width: 50, sortable: true, filter: 'number',hideable: false },
                    { text: 'Blocked<br/>Count', dataIndex: 'BLOCKEDCOUNT',width: 80, sortable: true, filter: 'number',hideable: false },
                    { text: 'Blocked<br/>Time', dataIndex: 'BLOCKEDTIME',width: 80, sortable: true, filter: 'number',hideable: false },
                    { text: 'Waited<br/>Count', dataIndex: 'WAITEDCOUNT',width: 80, sortable: true, filter: 'number',hideable: false },
                    { text: 'Waited<br/>Time', dataIndex: 'WAITEDTIME',width: 80, sortable: true, filter:'number',hideable: false },
                    {
                        text: 'State',
                        dataIndex: 'STATE',
                        width: 150,
                        sortable: true,
                        filter: {
                            type: 'list',
                            options: ['BLOCKED','NEW','RUNNABLE','TERMINATED','TIMED_WAITING','WAITING']
                        },
                        hideable: false },
                    {
                        text: 'Name',
                        dataIndex: 'NAME',
                        sortable: true,
                        filter: 'string',
                        width: 1200,
                        hideable: false}
                ],
                autoLoad: true,
                remoteSort: false,
                remoteFilter: false,
                columnLines: true,
                loadMask: true,
                plugins: [
                    'gridfilters',
                    'clipboard'
    ],
                selModel: {
                    type: 'spreadsheet',
                    ignoreRightMouseSelection: true,
                    rowSelect: false
    },
                tbar: [{
                    text: 'Reload',
                    iconCls: 'refresh',
                    handler: 'onReload'
    }, {
                    text: 'Help',
                    iconCls: 'info',
                    handler: 'onHelp'
    }, '->' , {
                    xtype: 'component',
                    tpl: 'Total Threads: {totalcount}',
                    style: 'margin-right:5px',
                    id: 'componentTotalCount',
                    data: {
                        totalcount: 0
    }
                 }]
    
            }]
        }]
    });
    Please add feature to look for selModel/type=spreadsheet require Ext.grid.selection.SpreadsheetModel.

    Thanks,
    Russ
    Attached Images Attached Images

  2. #2
    Sencha User
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. [FIXED] Sorting, Filters and selModel spreadsheet
    By rcecala in forum Ext 5: Bugs
    Replies: 2
    Last Post: 27 Aug 2015, 8:23 AM
  2. Replies: 2
    Last Post: 6 Jul 2015, 3:21 PM
  3. Replies: 1
    Last Post: 28 Jun 2015, 10:56 AM
  4. Replies: 2
    Last Post: 7 Apr 2015, 8:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •