Premium support for our pure JavaScript UI components


Post by chawkins8584 »

Hello,

I'm not sure if this is possible but I have a custom store I would like to set up in the project in SchedulerPro like the following

project : {
	customJobs : {
		modelClass : Jobs,
                headers : {
                     'Accept' : 'application/json'
                },
                autoload   : true,
                readUrl    : `${url['url']}/get_preloaded_job_info`,
                filters : [
               {
                    property : 'job_active',
                    operator : "=",
                    value    : true
               }
            ]
	}  
}

right now the only way i can add an extra store to the project is by doing the following

const newJobStore = new AjaxStore({
        modelClass : Jobs,
        headers : {
            'Accept' : 'application/json'
        },
        autoload   : true,
        readUrl    : `${url['url']}/get_preloaded_job_info`,
        filters : [
            {
                property : 'job_active',
                operator : "=",
                value    : true
            }
        ] 
    });

newJobStore.load();

project : {
   customJobStore: newJobStore
}

Post by tasnim »

Hi,

Sure you could use this https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#function-addCrudStore to achieve it. Please check this similar thread for more details viewtopic.php?p=133431#p133431

Hope this helps.

Best regards,
Tasnim


Post Reply