Show cool things you have done with our products


Post by softwarezman »

Hello all,
I decided to rework my stuff to go with the new ExtJS 4 code and put it in the MVC framework. Everything appears to work as it should. The only funky thing that I had to do was stick the dnd creation part in the app.js launch function, but other than that things look ok and should be useable from this point for examples and whatnot. Any comments/feedback would be appreciated as I plan on using this for a project soon. Thanks.
Attachments
ZScheduler.zip
(9.52 KiB) Downloaded 493 times

Post by bfuhne »

After adapting the paths to my setup, I open the index.html (in a webserver context). Results in the following stack trace:
Uncaught TypeError: Object Resources has no method 'on'
Ext.define.injectLockablesch-all-debug.js:3965
Ext.define.initComponentext-all-debug.js:74745
Base.callParentext-all-debug.js:2833
Ext.define.initComponentext-all-debug.js:76472
Base.callParentext-all-debug.js:2833
Sch.mixin.TimelinePanel.Config.initComponentsch-all-debug.js:7781
iterate.safeObjsch-all-debug.js:1200
Base.callParentext-all-debug.js:2833
Sch.mixin.SchedulerPanel.Config.initComponentsch-all-debug.js:8117
iterate.safeObjsch-all-debug.js:1200
Base.callParentext-all-debug.js:2833
Ext.define.initComponentDisplay.js:120
Ext.define.constructorext-all-debug.js:18584
Base.callParentext-all-debug.js:2833
Ext.define.constructorext-all-debug.js:27244
Ext.Class.Class.newClassext-all-debug.js:3067
anonymous:2
Manager.Ext.ClassManager.instantiateext-all-debug.js:3787
Manager.Ext.ClassManager.instantiateByAliasext-all-debug.js:3737
(anonymous function)ext-all-debug.js:1521
Ext.define.createext-all-debug.js:16672
Ext.define.createComponentext-all-debug.js:28228
Ext.define.lookupComponentext-all-debug.js:28216
Ext.define.prepareItemsext-all-debug.js:28187
Ext.define.addext-all-debug.js:28276
Ext.define.addext-all-debug.js:28266
Ext.define.initItemsext-all-debug.js:28091
Ext.define.initComponentext-all-debug.js:28075
Base.callParentext-all-debug.js:2833
Ext.define.initComponentext-all-debug.js:60688
Ext.define.constructorext-all-debug.js:18584
Base.callParentext-all-debug.js:2833
Ext.define.constructorext-all-debug.js:27244
Ext.Class.Class.newClassext-all-debug.js:3067
anonymous:2
Manager.Ext.ClassManager.instantiateext-all-debug.js:3787
(anonymous function)ext-all-debug.js:1521
Ext.apply.createext-all-debug.js:2864
Ext.define.onBeforeLaunchext-all-debug.js:39369
(anonymous function)ext-all-debug.js:39351
isEventext-all-debug.js:10117
fireext-all-debug.js:10259
Ext.EventManager.onDocumentReadyext-all-debug.js:10380
Loader.Ext.Loader.onReady.fnext-all-debug.js:4553
Loader.Ext.Loader.triggerReadyext-all-debug.js:4534
(anonymous function)ext-all-debug.js:1514
Loader.Ext.Loader.requireext-all-debug.js:4438
Loader.Ext.Loader.triggerReadyext-all-debug.js:4528
Loader.Ext.Loader.refreshQueueext-all-debug.js:4210
Loader.Ext.Loader.refreshQueueext-all-debug.js:4241
Loader.Ext.Loader.refreshQueueext-all-debug.js:4241
Loader.Ext.Loader.onFileLoadedext-all-debug.js:4484
(anonymous function)ext-all-debug.js:1514
Loader.Ext.Loader.injectScriptElement.onLoadFnext-all-debug.js:4256

Post by softwarezman »

Try adding:
requires: 'OCC.model.Resource'
to the Resources.js store file and see if that helps? I don't have access to the code at this moment but I'll look into it as soon as I get a chance.

Post by bfuhne »

Does not help, unfortunately.

Post Reply