Show cool things you have done with our products


Post by mats »

Time to post a clear test case, showing how you use the store.

Post by VijaySM »

This is my app.js and I have added code as below. this file is same as from trial version but added code to load data from json.
Ext.application({
    appFolder           : 'js/advanced',
    name                : 'Gnt.examples.advanced',
    extend              : 'Gnt.examples.advanced.Application',
    autoCreateViewport  : false,
    // force to get startDate based on the first task start
    startDate           : null
});

//Code to load data from Array
// Here my object contain long data so I am not pasting it over here.
var taskStore = new Gnt.data.TaskStore({
    root : {
        children : myObject.tasks.rows,
        expanded : true
    }
});
This is my crudManager.js
And changed autoLoad : true, to false in crudManager.js
Ext.define('Gnt.examples.advanced.crud.CrudManager', {
    extend          : 'Gnt.data.CrudManager',
    alias           : 'crudmanager.advanced-crudmanager',
    autoLoad        : false,
    transport       : {
        load : {
            method      : 'GET',
            paramName   : 'q',
            url         : 'php/read.php'
        },
        sync : {
            method      : 'POST',
            url         : 'php/save.php'
        }
    }
});

Post by VijaySM »

Am I missing something?
Please replay....

Post by mats »

Who is using your taskStore?

Post by mats »

Need to configure the CrudManager to use it. Please read docs: https://bryntum.com/products/gantt-for-extjs/docs/ ... rudManager

Post by VijaySM »

Who is using your taskStore?
what you do you mean this?

And please can you tell me the exact problem, as we also have licence for this control.

Post by arcady »

You create a task store instance. Then you supposed to use it somewhere. But you haven't posted any code demonstrating this.

We need a proper runnable test case to assist you.

Post by VijaySM »

Would you like to join on Teamviewer, I will share my screen as I am new to Extjs?

Post by mats »

Sorry, we don't offer free live support. For paid support, please contact sales at bryntum for a quote.

Put your created task store here, in Application.js - it's not hard :) :
me.crudManager = new Gnt.examples.advanced.crud.CrudManager({
            taskStore : new Gnt.examples.advanced.store.Tasks({
                calendarManager : new Gnt.examples.advanced.store.Calendars()
            })
        });

Post by VijaySM »

I have added below code to the Application.js constructor, is this a correct way?
var taskStore = new Gnt.data.TaskStore({
            calendarManager : me.crudManager.getCalendarManager(),
            resourceStore   : me.crudManager.getResourceStore(),
            dependencyStore : me.crudManager.getDependencyStore(),
            assignmentStore : me.crudManager.getAssignmentStore(),
            root : {
                children : myObject,
                expanded : true
            }
        });
        me.crudManager = new Gnt.examples.advanced.crud.CrudManager({
            taskStore : new Gnt.examples.advanced.store.Tasks({
                calendarManager : new Gnt.examples.advanced.store.Calendars(),
                taskStore: taskStore
            })
        });

Post Reply