exception in scrollToDateCentered,Version 1.0.9 not working

Ask for help relating to our Sencha Touch based Scheduler (for iPad, or any other supported phone, phablet or tablet)
Post Reply
User avatar
pincherhgz
Posts: 78
Joined: Mon Oct 27, 2014 11:40 am

exception in scrollToDateCentered,Version 1.0.9 not working

Post by pincherhgz »

we are facing problems with the method scrollToDateCentered, it throws the exception

"TypeError: view.getBox is not a function
at Class.scrollToDateCentered (http://localhost:8090/WEB/WEBApp/3rdPar ... js:9931:26)
at scHzoomScheduler (http://localhost:8090/WEB/WEBApp/standa ... js:1129:27)
at SchedulingEventSwitch (http://localhost:8090/WEB/WEBApp/standa ... .js:936:33)
at eval (eval at injectScript (http://localhost:8090/WEB/WEBApp/standa ... js:3434:33), <anonymous>:1:1)
at hummingbirdApi.injectScript (http://localhost:8090/WEB/WEBApp/standa ... js:3434:33)
at onMessage (http://localhost:8090/WEB/WEBApp/standa ... .js:861:60)
at WebSocket.hbAwebSocket.onmessage (http://localhost:8090/WEB/WEBApp/standa ... .js:388:54)"


we tried to implement the latest version of touch scheduler (by the way in the customer zone releases there is a date 26.5.2015 shown, if you open with + the date is 30.12.2016), but even your examples show the error (see attached screen shot)
Attachments
scheduler-1.0.9.png
scheduler-1.0.9.png (162.64 KiB) Viewed 3483 times

User avatar
Maxim Gorkovsky
Core Developer
Core Developer
Posts: 3075
Joined: Wed Jan 08, 2014 11:46 am

Re: exception in scrollToDateCentered,Version 1.0.9 not work

Post by Maxim Gorkovsky »

Hello.
Thank you for report! While we are working on fixing this, please follow these steps to make example work:
1) in app.json remove this:

Code: Select all

{
  "path": "../../touch-scheduler-all-debug.js"
}
2) in advanced.js modify file start accordingly:

Code: Select all

Ext.Loader.setPath({
  'App' : 'lib',
  'Sch' : '../../lib/Sch',
  'UberGrid' : '../../lib/UberGrid'
});

Ext.setup({
  requires : [
    'App.model.Task',
    'App.model.Resource',
    'Sch.panel.SchedulerGrid'
  ],
  ...
3) Create file touch-scheduler-1.0.9/lib/Sch/model/Date.js with following content:

Code: Select all

/**

 @class Sch.model.Date
 @extends Ext.data.Model

 This class represent a single date.

 */
Ext.define('Sch.model.Date', {
    extend : 'Ext.data.Model',

    fields : [
        { name : 'Date', type : 'date' },
        'Cls',
        'Text'
    ],

    config : {
        useCache : false,
        fields : [
            { name : 'Date', type : 'date' },
            'Cls',
            'Text'
        ]
    }
});
Alternatively, you can simply modify touch-scheduler-all-debug.js and add code above somewhere in the beginning, e.g. before line 18.

We apologize for inconvenience.

Post Reply