Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1927 in a recent build.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    13
    Vote Rating
    0
    Wally Nelson is on a distinguished road

      0  

    Default Uncaught Error: [ERROR][Ext.data.association.Association#setAssociatedModel]

    Uncaught Error: [ERROR][Ext.data.association.Association#setAssociatedModel]


    I went from PR3 to B2 and I am getting the following error intermittently:

    Uncaught Error: [ERROR][Ext.data.association.Association#setAssociatedModel] The configured associatedModel was not valid (you tried Meeting.model.Bookmark)


    The following code defines five models, one store, and one app. Even when I don't get the error the store does not load the Bookmarks and Pages, only the Thumbnails are created under the document.

    This was working in PR3 and it created a record for each Case that had a property called Documents, and for each Document it had properties for Bookmarks, Pages, and Thumbnails, now it creates DocumentsStore, and for each Document it only creates ThumbnailsStore.

    Please let me know if there is something I am doing wrong.

    Thanks!!!

    Code:
    Ext.define('Meeting.model.Case', {
        extend: 'Ext.data.Model',
    
        config: {
            fields: ['CaseNo', 'CaseName'],
            hasMany: { model: 'Meeting.model.Document', name: 'Documents', associationKey: 'Documents' }
        }
    });
    
    Ext.define('Meeting.model.Document', {
        extend: 'Ext.data.Model',
    
        config: {
            fields: ['Title', 'PageSrc'],
            belongsTo: 'Meeting.model.Case',
            hasMany:
            [
            { model: 'Meeting.model.Bookmark', name: 'Bookmarks', associationKey: 'Bookmarks' },
            { model: 'Meeting.model.Page', name: 'Pages', associationKey: 'Pages' },
            { model: 'Meeting.model.Thumbnail', name: 'Thumbnails', associationKey: 'Thumbnails' }
            ]
        }
    });
    
    Ext.define('Meeting.model.Bookmark', {
        extend: 'Ext.data.Model',
    
        config: {
            fields: ['Title', 'PageNo'],
            belongsTo: 'Meeting.model.Document'
        }
    });
    
    Ext.define('Meeting.model.Page', {
        extend: 'Ext.data.Model',
    
        config: {
            fields: ['PageNo', 'PageSrc'],
            belongsTo: 'Meeting.model.Document'
        }
    });
    
    Ext.define('Meeting.model.Thumbnail', {
        extend: 'Ext.data.Model',
    
        config: {
            fields: ['ThumbNo', 'ThumbSrc'],
            belongsTo: 'Meeting.model.Document'
        }
    });
    
    Ext.define('Meeting.store.Cases', {
        extend: 'Ext.data.Store',
    
        requires:
        [
        'Meeting.model.Case',
        'Meeting.model.Document',
        'Meeting.model.Thumbnail',
        'Meeting.model.Bookmark',
        'Meeting.model.Page'
        ],
    
        config: {
            model: 'Meeting.model.Case',
    
            data:
            [
            {
                'CaseNo': '11-45503',
                'CaseName': 'Altman, Randy',
                'Documents':
                [
                {
                    'Title': 'Petition',
                    'PageSrc': 'public/cases/12-00001/doc1/page1.png',
                    'Pages':
                    [
                        { 'PageNo': '1', 'PageSrc': 'public/cases/11-45503/doc1/page1.png' },
                        { 'PageNo': '2', 'PageSrc': 'public/cases/11-45503/doc1/page2.png' },
                        { 'PageNo': '3', 'PageSrc': 'public/cases/11-45503/doc1/page3.png' },
                        { 'PageNo': '4', 'PageSrc': 'public/cases/11-45503/doc1/page4.png' },
                        { 'PageNo': '5', 'PageSrc': 'public/cases/11-45503/doc1/page5.png' },
                        { 'PageNo': '6', 'PageSrc': 'public/cases/11-45503/doc1/page6.png' },
                        { 'PageNo': '7', 'PageSrc': 'public/cases/11-45503/doc1/page7.png' },
                        { 'PageNo': '8', 'PageSrc': 'public/cases/11-45503/doc1/page8.png' },
                        { 'PageNo': '9', 'PageSrc': 'public/cases/11-45503/doc1/page9.png' },
                        { 'PageNo': '10', 'PageSrc': 'public/cases/11-45503/doc1/page10.png' },
                        { 'PageNo': '11', 'PageSrc': 'public/cases/11-45503/doc1/page11.png' },
                        { 'PageNo': '12', 'PageSrc': 'public/cases/11-45503/doc1/page12.png' },
                        { 'PageNo': '13', 'PageSrc': 'public/cases/11-45503/doc1/page13.png' },
                        { 'PageNo': '14', 'PageSrc': 'public/cases/11-45503/doc1/page14.png' },
                        { 'PageNo': '15', 'PageSrc': 'public/cases/11-45503/doc1/page15.png' },
                        { 'PageNo': '16', 'PageSrc': 'public/cases/11-45503/doc1/page16.png' },
                        { 'PageNo': '17', 'PageSrc': 'public/cases/11-45503/doc1/page17.png' },
                        { 'PageNo': '18', 'PageSrc': 'public/cases/11-45503/doc1/page18.png' },
                        { 'PageNo': '19', 'PageSrc': 'public/cases/11-45503/doc1/page19.png' },
                        { 'PageNo': '20', 'PageSrc': 'public/cases/11-45503/doc1/page20.png' },
                        { 'PageNo': '21', 'PageSrc': 'public/cases/11-45503/doc1/page21.png' },
                        { 'PageNo': '22', 'PageSrc': 'public/cases/11-45503/doc1/page22.png' },
                        { 'PageNo': '23', 'PageSrc': 'public/cases/11-45503/doc1/page23.png' },
                        { 'PageNo': '24', 'PageSrc': 'public/cases/11-45503/doc1/page24.png' },
                        { 'PageNo': '25', 'PageSrc': 'public/cases/11-45503/doc1/page25.png' },
                        { 'PageNo': '26', 'PageSrc': 'public/cases/11-45503/doc1/page26.png' },
                        { 'PageNo': '27', 'PageSrc': 'public/cases/11-45503/doc1/page27.png' },
                        { 'PageNo': '28', 'PageSrc': 'public/cases/11-45503/doc1/page28.png' },
                        { 'PageNo': '29', 'PageSrc': 'public/cases/11-45503/doc1/page29.png' },
                        { 'PageNo': '30', 'PageSrc': 'public/cases/11-45503/doc1/page30.png' },
                        { 'PageNo': '31', 'PageSrc': 'public/cases/11-45503/doc1/page31.png' },
                        { 'PageNo': '32', 'PageSrc': 'public/cases/11-45503/doc1/page32.png' },
                        { 'PageNo': '33', 'PageSrc': 'public/cases/11-45503/doc1/page33.png' },
                        { 'PageNo': '34', 'PageSrc': 'public/cases/11-45503/doc1/page34.png' },
                        { 'PageNo': '35', 'PageSrc': 'public/cases/11-45503/doc1/page35.png' },
                        { 'PageNo': '36', 'PageSrc': 'public/cases/11-45503/doc1/page36.png' },
                        { 'PageNo': '37', 'PageSrc': 'public/cases/11-45503/doc1/page37.png' },
                        { 'PageNo': '38', 'PageSrc': 'public/cases/11-45503/doc1/page38.png' },
                        { 'PageNo': '39', 'PageSrc': 'public/cases/11-45503/doc1/page39.png' },
                        { 'PageNo': '40', 'PageSrc': 'public/cases/11-45503/doc1/page40.png' },
                        { 'PageNo': '41', 'PageSrc': 'public/cases/11-45503/doc1/page41.png' },
                        { 'PageNo': '42', 'PageSrc': 'public/cases/11-45503/doc1/page42.png' },
                        { 'PageNo': '43', 'PageSrc': 'public/cases/11-45503/doc1/page43.png' },
                        { 'PageNo': '44', 'PageSrc': 'public/cases/11-45503/doc1/page44.png' },
                        { 'PageNo': '45', 'PageSrc': 'public/cases/11-45503/doc1/page45.png' },
                        { 'PageNo': '46', 'PageSrc': 'public/cases/11-45503/doc1/page46.png' },
                        { 'PageNo': '47', 'PageSrc': 'public/cases/11-45503/doc1/page47.png' },
                        { 'PageNo': '48', 'PageSrc': 'public/cases/11-45503/doc1/page48.png' },
                        { 'PageNo': '49', 'PageSrc': 'public/cases/11-45503/doc1/page49.png' },
                        { 'PageNo': '50', 'PageSrc': 'public/cases/11-45503/doc1/page50.png' },
                        { 'PageNo': '51', 'PageSrc': 'public/cases/11-45503/doc1/page51.png' },
                        { 'PageNo': '52', 'PageSrc': 'public/cases/11-45503/doc1/page52.png' },
                        { 'PageNo': '53', 'PageSrc': 'public/cases/11-45503/doc1/page53.png' },
                        { 'PageNo': '54', 'PageSrc': 'public/cases/11-45503/doc1/page54.png' },
                        { 'PageNo': '55', 'PageSrc': 'public/cases/11-45503/doc1/page55.png' },
                        { 'PageNo': '56', 'PageSrc': 'public/cases/11-45503/doc1/page56.png' },
                        { 'PageNo': '57', 'PageSrc': 'public/cases/11-45503/doc1/page57.png' },
                        { 'PageNo': '58', 'PageSrc': 'public/cases/11-45503/doc1/page58.png' },
                        { 'PageNo': '59', 'PageSrc': 'public/cases/11-45503/doc1/page59.png' },
                        { 'PageNo': '60', 'PageSrc': 'public/cases/11-45503/doc1/page60.png' },
                        { 'PageNo': '61', 'PageSrc': 'public/cases/11-45503/doc1/page61.png' },
                        { 'PageNo': '62', 'PageSrc': 'public/cases/11-45503/doc1/page62.png' },
                        { 'PageNo': '63', 'PageSrc': 'public/cases/11-45503/doc1/page63.png' }
                    ],
                    'Thumbnails':
                    [
                        { 'ThumbNo': '1', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb1.png' },
                        { 'ThumbNo': '2', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb2.png' },
                        { 'ThumbNo': '3', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb3.png' },
                        { 'ThumbNo': '4', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb4.png' },
                        { 'ThumbNo': '5', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb5.png' },
                        { 'ThumbNo': '6', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb6.png' },
                        { 'ThumbNo': '7', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb7.png' },
                        { 'ThumbNo': '8', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb8.png' },
                        { 'ThumbNo': '9', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb9.png' },
                        { 'ThumbNo': '10', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb10.png' },
                        { 'ThumbNo': '11', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb11.png' },
                        { 'ThumbNo': '12', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb12.png' },
                        { 'ThumbNo': '13', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb13.png' },
                        { 'ThumbNo': '14', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb14.png' },
                        { 'ThumbNo': '15', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb15.png' },
                        { 'ThumbNo': '16', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb16.png' },
                        { 'ThumbNo': '17', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb17.png' },
                        { 'ThumbNo': '18', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb18.png' },
                        { 'ThumbNo': '19', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb19.png' },
                        { 'ThumbNo': '20', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb20.png' },
                        { 'ThumbNo': '21', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb21.png' },
                        { 'ThumbNo': '22', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb22.png' },
                        { 'ThumbNo': '23', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb23.png' },
                        { 'ThumbNo': '24', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb24.png' },
                        { 'ThumbNo': '25', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb25.png' },
                        { 'ThumbNo': '26', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb26.png' },
                        { 'ThumbNo': '27', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb27.png' },
                        { 'ThumbNo': '28', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb28.png' },
                        { 'ThumbNo': '29', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb29.png' },
                        { 'ThumbNo': '30', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb30.png' },
                        { 'ThumbNo': '31', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb31.png' },
                        { 'ThumbNo': '32', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb32.png' },
                        { 'ThumbNo': '33', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb33.png' },
                        { 'ThumbNo': '34', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb34.png' },
                        { 'ThumbNo': '35', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb35.png' },
                        { 'ThumbNo': '36', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb36.png' },
                        { 'ThumbNo': '37', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb37.png' },
                        { 'ThumbNo': '38', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb38.png' },
                        { 'ThumbNo': '39', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb39.png' },
                        { 'ThumbNo': '40', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb40.png' },
                        { 'ThumbNo': '41', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb41.png' },
                        { 'ThumbNo': '42', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb42.png' },
                        { 'ThumbNo': '43', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb43.png' },
                        { 'ThumbNo': '44', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb44.png' },
                        { 'ThumbNo': '45', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb45.png' },
                        { 'ThumbNo': '46', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb46.png' },
                        { 'ThumbNo': '47', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb47.png' },
                        { 'ThumbNo': '48', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb48.png' },
                        { 'ThumbNo': '49', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb49.png' },
                        { 'ThumbNo': '50', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb50.png' },
                        { 'ThumbNo': '51', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb51.png' },
                        { 'ThumbNo': '52', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb52.png' },
                        { 'ThumbNo': '53', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb53.png' },
                        { 'ThumbNo': '54', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb54.png' },
                        { 'ThumbNo': '55', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb55.png' },
                        { 'ThumbNo': '56', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb56.png' },
                        { 'ThumbNo': '57', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb57.png' },
                        { 'ThumbNo': '58', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb58.png' },
                        { 'ThumbNo': '59', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb59.png' },
                        { 'ThumbNo': '60', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb60.png' },
                        { 'ThumbNo': '61', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb61.png' },
                        { 'ThumbNo': '62', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb62.png' },
                        { 'ThumbNo': '63', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb63.png' }
                    ],
                    'Bookmarks':
                    [
                        { 'PageNo': '1', 'Title': 'Form 1. Voluntary Petition' },
                        { 'PageNo': '5', 'Title': 'Exhibit D (Debtor)' },
                        { 'PageNo': '7', 'Title': 'Exhibit D (Joint Debtor)' },
                        { 'PageNo': '13', 'Title': 'Form B6 - Cover Sheet' },
                        { 'PageNo': '14', 'Title': 'Schedule A' },
                        { 'PageNo': '15', 'Title': 'Schedule B' },
                        { 'PageNo': '18', 'Title': 'Schedule C' },
                        { 'PageNo': '19', 'Title': 'Schedule D' },
                        { 'PageNo': '21', 'Title': 'Schedule E' },
                        { 'PageNo': '23', 'Title': 'Schedule F' },
                        { 'PageNo': '26', 'Title': 'Schedule G' },
                        { 'PageNo': '27', 'Title': 'Schedule H' },
                        { 'PageNo': '28', 'Title': 'Schedule I' },
                        { 'PageNo': '29', 'Title': 'Schedule J' },
                        { 'PageNo': '30', 'Title': 'Summary of Schedules' },
                        { 'PageNo': '32', 'Title': 'Declaration Concerning Debtors Schedules' },
                        { 'PageNo': '33', 'Title': 'Statement of Affairs' },
                        { 'PageNo': '45', 'Title': 'Form B203 Fee Disclosure' },
                        { 'PageNo': '51', 'Title': 'Statement of Current Monthly Income & Means Test Calculation' },
                        { 'PageNo': '61', 'Title': 'Form 8. Statement of Intention' }
                    ]
                }
                ]
            }
        ]
        }
    });
    
    Ext.Loader.setConfig({
        enabled: true,
        disableCaching: false
    });
    
    Ext.application({
        name: 'Meeting',
        appFolder: 'public/js/meeting',
    
        models: ['Case', 'Document', 'Bookmark', 'Thumbnail', 'Page'],
        stores: ['Cases'],
        //controllers: ['Case'],
        //views: ['Viewport', 'ViewManager', 'ViewPresenter', 'CaseManager', 'CasesView', 'DocumentsView', 'ThumbnailsView', 'BookmarksView', 'DocumentView', 'ResultsView', 'SignatureView'],
    
        launch: function () {
            //Ext.create('Meeting.view.Viewport');
            debugger;
            var cases = Ext.create('Meeting.store.Cases');
            console.log('Meeting.app launched');
        }
    });

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Hi Wally,

    We have done some fixes to the associations in the last couple days so I'm not sure if I'm not able to reproduce this because it has already been fixed.

    The following test case works for me:

    Code:
            Ext.define('Meeting.model.Case', {
                extend: 'Ext.data.Model',
    
                config: {
                    fields: ['CaseNo', 'CaseName'],
                    hasMany: {
                        model: 'Meeting.model.Document',
                        name: 'Documents',
                        associationKey: 'Documents'
                    }
                }
            });
    
            Ext.define('Meeting.model.Document', {
                extend: 'Ext.data.Model',
    
                config: {
                    fields: ['Title', 'PageSrc'],
                    belongsTo: 'Meeting.model.Case',
                    hasMany: [
                        { model: 'Meeting.model.Bookmark', name: 'Bookmarks', associationKey: 'Bookmarks' },
                        { model: 'Meeting.model.Page', name: 'Pages', associationKey: 'Pages' },
                        { model: 'Meeting.model.Thumbnail', name: 'Thumbnails', associationKey: 'Thumbnails' }
                    ]
                }
            });
    
            Ext.define('Meeting.model.Bookmark', {
                extend: 'Ext.data.Model',
    
                config: {
                    fields: ['Title', 'PageNo'],
                    belongsTo: 'Meeting.model.Document'
                }
            });
    
            Ext.define('Meeting.model.Page', {
                extend: 'Ext.data.Model',
    
                config: {
                    fields: ['PageNo', 'PageSrc'],
                    belongsTo: 'Meeting.model.Document'
                }
            });
    
            Ext.define('Meeting.model.Thumbnail', {
                extend: 'Ext.data.Model',
    
                config: {
                    fields: ['ThumbNo', 'ThumbSrc'],
                    belongsTo: 'Meeting.model.Document'
                }
            });
    
            Ext.define('Meeting.store.Cases', {
                extend: 'Ext.data.Store',
    
    //            requires:
    //            [
    //                'Meeting.model.Case',
    //                'Meeting.model.Document',
    //                'Meeting.model.Thumbnail',
    //                'Meeting.model.Bookmark',
    //                'Meeting.model.Page'
    //            ],
    
                config: {
                    model: 'Meeting.model.Case',
    
                    data: [
                        {
                        'CaseNo': '11-45503',
                        'CaseName': 'Altman, Randy',
                        'Documents':
                        [
                        {
                            'Title': 'Petition',
                            'PageSrc': 'public/cases/12-00001/doc1/page1.png',
                            'Pages':
                            [
                                { 'PageNo': '1', 'PageSrc': 'public/cases/11-45503/doc1/page1.png' },
                                { 'PageNo': '2', 'PageSrc': 'public/cases/11-45503/doc1/page2.png' },
                                { 'PageNo': '3', 'PageSrc': 'public/cases/11-45503/doc1/page3.png' },
                                { 'PageNo': '4', 'PageSrc': 'public/cases/11-45503/doc1/page4.png' },
                                { 'PageNo': '5', 'PageSrc': 'public/cases/11-45503/doc1/page5.png' },
                                { 'PageNo': '6', 'PageSrc': 'public/cases/11-45503/doc1/page6.png' },
                                { 'PageNo': '7', 'PageSrc': 'public/cases/11-45503/doc1/page7.png' },
                                { 'PageNo': '8', 'PageSrc': 'public/cases/11-45503/doc1/page8.png' },
                                { 'PageNo': '9', 'PageSrc': 'public/cases/11-45503/doc1/page9.png' },
                                { 'PageNo': '10', 'PageSrc': 'public/cases/11-45503/doc1/page10.png' },
                                { 'PageNo': '11', 'PageSrc': 'public/cases/11-45503/doc1/page11.png' },
                                { 'PageNo': '12', 'PageSrc': 'public/cases/11-45503/doc1/page12.png' },
                                { 'PageNo': '13', 'PageSrc': 'public/cases/11-45503/doc1/page13.png' },
                                { 'PageNo': '14', 'PageSrc': 'public/cases/11-45503/doc1/page14.png' },
                                { 'PageNo': '15', 'PageSrc': 'public/cases/11-45503/doc1/page15.png' },
                                { 'PageNo': '16', 'PageSrc': 'public/cases/11-45503/doc1/page16.png' },
                                { 'PageNo': '17', 'PageSrc': 'public/cases/11-45503/doc1/page17.png' },
                                { 'PageNo': '18', 'PageSrc': 'public/cases/11-45503/doc1/page18.png' },
                                { 'PageNo': '19', 'PageSrc': 'public/cases/11-45503/doc1/page19.png' },
                                { 'PageNo': '20', 'PageSrc': 'public/cases/11-45503/doc1/page20.png' },
                                { 'PageNo': '21', 'PageSrc': 'public/cases/11-45503/doc1/page21.png' },
                                { 'PageNo': '22', 'PageSrc': 'public/cases/11-45503/doc1/page22.png' },
                                { 'PageNo': '23', 'PageSrc': 'public/cases/11-45503/doc1/page23.png' },
                                { 'PageNo': '24', 'PageSrc': 'public/cases/11-45503/doc1/page24.png' },
                                { 'PageNo': '25', 'PageSrc': 'public/cases/11-45503/doc1/page25.png' },
                                { 'PageNo': '26', 'PageSrc': 'public/cases/11-45503/doc1/page26.png' },
                                { 'PageNo': '27', 'PageSrc': 'public/cases/11-45503/doc1/page27.png' },
                                { 'PageNo': '28', 'PageSrc': 'public/cases/11-45503/doc1/page28.png' },
                                { 'PageNo': '29', 'PageSrc': 'public/cases/11-45503/doc1/page29.png' },
                                { 'PageNo': '30', 'PageSrc': 'public/cases/11-45503/doc1/page30.png' },
                                { 'PageNo': '31', 'PageSrc': 'public/cases/11-45503/doc1/page31.png' },
                                { 'PageNo': '32', 'PageSrc': 'public/cases/11-45503/doc1/page32.png' },
                                { 'PageNo': '33', 'PageSrc': 'public/cases/11-45503/doc1/page33.png' },
                                { 'PageNo': '34', 'PageSrc': 'public/cases/11-45503/doc1/page34.png' },
                                { 'PageNo': '35', 'PageSrc': 'public/cases/11-45503/doc1/page35.png' },
                                { 'PageNo': '36', 'PageSrc': 'public/cases/11-45503/doc1/page36.png' },
                                { 'PageNo': '37', 'PageSrc': 'public/cases/11-45503/doc1/page37.png' },
                                { 'PageNo': '38', 'PageSrc': 'public/cases/11-45503/doc1/page38.png' },
                                { 'PageNo': '39', 'PageSrc': 'public/cases/11-45503/doc1/page39.png' },
                                { 'PageNo': '40', 'PageSrc': 'public/cases/11-45503/doc1/page40.png' },
                                { 'PageNo': '41', 'PageSrc': 'public/cases/11-45503/doc1/page41.png' },
                                { 'PageNo': '42', 'PageSrc': 'public/cases/11-45503/doc1/page42.png' },
                                { 'PageNo': '43', 'PageSrc': 'public/cases/11-45503/doc1/page43.png' },
                                { 'PageNo': '44', 'PageSrc': 'public/cases/11-45503/doc1/page44.png' },
                                { 'PageNo': '45', 'PageSrc': 'public/cases/11-45503/doc1/page45.png' },
                                { 'PageNo': '46', 'PageSrc': 'public/cases/11-45503/doc1/page46.png' },
                                { 'PageNo': '47', 'PageSrc': 'public/cases/11-45503/doc1/page47.png' },
                                { 'PageNo': '48', 'PageSrc': 'public/cases/11-45503/doc1/page48.png' },
                                { 'PageNo': '49', 'PageSrc': 'public/cases/11-45503/doc1/page49.png' },
                                { 'PageNo': '50', 'PageSrc': 'public/cases/11-45503/doc1/page50.png' },
                                { 'PageNo': '51', 'PageSrc': 'public/cases/11-45503/doc1/page51.png' },
                                { 'PageNo': '52', 'PageSrc': 'public/cases/11-45503/doc1/page52.png' },
                                { 'PageNo': '53', 'PageSrc': 'public/cases/11-45503/doc1/page53.png' },
                                { 'PageNo': '54', 'PageSrc': 'public/cases/11-45503/doc1/page54.png' },
                                { 'PageNo': '55', 'PageSrc': 'public/cases/11-45503/doc1/page55.png' },
                                { 'PageNo': '56', 'PageSrc': 'public/cases/11-45503/doc1/page56.png' },
                                { 'PageNo': '57', 'PageSrc': 'public/cases/11-45503/doc1/page57.png' },
                                { 'PageNo': '58', 'PageSrc': 'public/cases/11-45503/doc1/page58.png' },
                                { 'PageNo': '59', 'PageSrc': 'public/cases/11-45503/doc1/page59.png' },
                                { 'PageNo': '60', 'PageSrc': 'public/cases/11-45503/doc1/page60.png' },
                                { 'PageNo': '61', 'PageSrc': 'public/cases/11-45503/doc1/page61.png' },
                                { 'PageNo': '62', 'PageSrc': 'public/cases/11-45503/doc1/page62.png' },
                                { 'PageNo': '63', 'PageSrc': 'public/cases/11-45503/doc1/page63.png' }
                            ],
                            'Thumbnails':
                            [
                                { 'ThumbNo': '1', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb1.png' },
                                { 'ThumbNo': '2', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb2.png' },
                                { 'ThumbNo': '3', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb3.png' },
                                { 'ThumbNo': '4', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb4.png' },
                                { 'ThumbNo': '5', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb5.png' },
                                { 'ThumbNo': '6', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb6.png' },
                                { 'ThumbNo': '7', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb7.png' },
                                { 'ThumbNo': '8', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb8.png' },
                                { 'ThumbNo': '9', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb9.png' },
                                { 'ThumbNo': '10', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb10.png' },
                                { 'ThumbNo': '11', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb11.png' },
                                { 'ThumbNo': '12', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb12.png' },
                                { 'ThumbNo': '13', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb13.png' },
                                { 'ThumbNo': '14', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb14.png' },
                                { 'ThumbNo': '15', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb15.png' },
                                { 'ThumbNo': '16', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb16.png' },
                                { 'ThumbNo': '17', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb17.png' },
                                { 'ThumbNo': '18', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb18.png' },
                                { 'ThumbNo': '19', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb19.png' },
                                { 'ThumbNo': '20', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb20.png' },
                                { 'ThumbNo': '21', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb21.png' },
                                { 'ThumbNo': '22', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb22.png' },
                                { 'ThumbNo': '23', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb23.png' },
                                { 'ThumbNo': '24', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb24.png' },
                                { 'ThumbNo': '25', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb25.png' },
                                { 'ThumbNo': '26', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb26.png' },
                                { 'ThumbNo': '27', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb27.png' },
                                { 'ThumbNo': '28', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb28.png' },
                                { 'ThumbNo': '29', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb29.png' },
                                { 'ThumbNo': '30', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb30.png' },
                                { 'ThumbNo': '31', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb31.png' },
                                { 'ThumbNo': '32', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb32.png' },
                                { 'ThumbNo': '33', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb33.png' },
                                { 'ThumbNo': '34', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb34.png' },
                                { 'ThumbNo': '35', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb35.png' },
                                { 'ThumbNo': '36', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb36.png' },
                                { 'ThumbNo': '37', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb37.png' },
                                { 'ThumbNo': '38', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb38.png' },
                                { 'ThumbNo': '39', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb39.png' },
                                { 'ThumbNo': '40', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb40.png' },
                                { 'ThumbNo': '41', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb41.png' },
                                { 'ThumbNo': '42', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb42.png' },
                                { 'ThumbNo': '43', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb43.png' },
                                { 'ThumbNo': '44', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb44.png' },
                                { 'ThumbNo': '45', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb45.png' },
                                { 'ThumbNo': '46', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb46.png' },
                                { 'ThumbNo': '47', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb47.png' },
                                { 'ThumbNo': '48', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb48.png' },
                                { 'ThumbNo': '49', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb49.png' },
                                { 'ThumbNo': '50', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb50.png' },
                                { 'ThumbNo': '51', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb51.png' },
                                { 'ThumbNo': '52', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb52.png' },
                                { 'ThumbNo': '53', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb53.png' },
                                { 'ThumbNo': '54', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb54.png' },
                                { 'ThumbNo': '55', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb55.png' },
                                { 'ThumbNo': '56', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb56.png' },
                                { 'ThumbNo': '57', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb57.png' },
                                { 'ThumbNo': '58', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb58.png' },
                                { 'ThumbNo': '59', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb59.png' },
                                { 'ThumbNo': '60', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb60.png' },
                                { 'ThumbNo': '61', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb61.png' },
                                { 'ThumbNo': '62', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb62.png' },
                                { 'ThumbNo': '63', 'ThumbSrc': 'public/cases/11-45503/doc1/thumb63.png' }
                            ],
                            'Bookmarks':
                            [
                                { 'PageNo': '1', 'Title': 'Form 1. Voluntary Petition' },
                                { 'PageNo': '5', 'Title': 'Exhibit D (Debtor)' },
                                { 'PageNo': '7', 'Title': 'Exhibit D (Joint Debtor)' },
                                { 'PageNo': '13', 'Title': 'Form B6 - Cover Sheet' },
                                { 'PageNo': '14', 'Title': 'Schedule A' },
                                { 'PageNo': '15', 'Title': 'Schedule B' },
                                { 'PageNo': '18', 'Title': 'Schedule C' },
                                { 'PageNo': '19', 'Title': 'Schedule D' },
                                { 'PageNo': '21', 'Title': 'Schedule E' },
                                { 'PageNo': '23', 'Title': 'Schedule F' },
                                { 'PageNo': '26', 'Title': 'Schedule G' },
                                { 'PageNo': '27', 'Title': 'Schedule H' },
                                { 'PageNo': '28', 'Title': 'Schedule I' },
                                { 'PageNo': '29', 'Title': 'Schedule J' },
                                { 'PageNo': '30', 'Title': 'Summary of Schedules' },
                                { 'PageNo': '32', 'Title': 'Declaration Concerning Debtors Schedules' },
                                { 'PageNo': '33', 'Title': 'Statement of Affairs' },
                                { 'PageNo': '45', 'Title': 'Form B203 Fee Disclosure' },
                                { 'PageNo': '51', 'Title': 'Statement of Current Monthly Income & Means Test Calculation' },
                                { 'PageNo': '61', 'Title': 'Form 8. Statement of Intention' }
                            ]
                        }
                        ]
                    }
                ]
                }
            });
    
            Ext.setup({
                onReady: function() {
                    var cases = Ext.create('Meeting.store.Cases');
                    console.log(cases);
                }
            });

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    Miami, FL
    Posts
    56
    Vote Rating
    1
    omarc is on a distinguished road

      0  

    Default


    Hey Tommy,

    I am consistently getting this same error.

    I looked through the code in ModelManager and noticed that all the deferred registration code for associations had been commented, which is the problem in my case.

    Can you confirm this has been brought back?

    I am also using ST2 B2.

    Thanks,

    Omar

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    That code now exists in Model.js. If you look in the addAssociation method you see it uses Ext.ClassManager.onCreated. This will automatically fire that callback function (and thus defer the instantiation of the association) as soon as the associatedModel has been defined on the page.

    The issue seems to be that it is not clear for some people that they have to use full class names when setting up an association.

Thread Participants: 2