Controlling the TaskLog actions

The TaskLogController definition is the most complex controller definition we have yet developed. The definition that follows excludes the refs and init configuration. You can download the full source code from this book's website:

Ext.define('TTT.controller.TaskLogController', { extend: 'Ext.app.Controller', views: ['tasklog.ManageTaskLogs'], stores: ['TaskLog', 'Project', 'Task'], refs: omitted… init: omitted… doAfterActivate: function() { var me = this; me.getTaskStore().load(); me.getProjectStore().load(); }, doSelectProject: function(combo, records) { var me = this; var rec = records[0]; if (!Ext.isEmpty(rec)) { me.getTaskCombo().getStore().clearFilter(); me.getTaskCombo().getStore().filter({ property: 'idProject', ...

Get Enterprise Application Development with Ext JS and Spring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.