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', value...