Using in conjunction with Scheduler component

Ask for help related to our Calendar 2.x version
Post Reply
User avatar
BrommyCanary
Posts: 10
Joined: Mon Dec 01, 2014 12:58 pm

Using in conjunction with Scheduler component

Post by BrommyCanary »

Hi,

We've been using the scheduler component for some time in our ExtJS 6 (now migrated to 7) app. We've purchased the calendar component, but when I try and include it in our app.json build/compile files, it 'compiles' fine, but I get duplication errors of some classes. For example:

Code: Select all

Ext.data.schema.Schema.addEntity(): Duplicate entity name "Sch.model.Customizable": Sch.model.Customizable and Sch.model.Customizable
Any suggestions on how to make Scheduler and Calendar play nicely together in the same application?

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 3069
Joined: Fri Apr 01, 2016 11:08 am

Re: Using in conjunction with Scheduler component

Post by pmiklashevich »

Hello,

Please take a look at "Using the Calendar with other Bryntum products" chapter: https://www.bryntum.com/docs/calendar-for-extjs/#!/guide/sencha_cmd

Since you're using Calendar with Scheduler, please include full scheduler sources plus thin calendar sources:

Code: Select all

        "requires": [
            "bryntum-scheduler"
        ],

        ...

        "classpath": [
            "packages/local/bryntum-calendar/build/bryntum-calendar-thin-debug.js",
            ...
        ]
Best,
Pavel

P.S. If it's still doesn't work for you, please attach a small runnable example that we can inspect + plus instructions of how to get it running to see the errors.
Pavel Miklashevich - Core Developer

User avatar
BrommyCanary
Posts: 10
Joined: Mon Dec 01, 2014 12:58 pm

Re: Using in conjunction with Scheduler component

Post by BrommyCanary »

That's worked! Thanks for the quick response and your assistance.

Post Reply