O'Reilly logo

Enterprise Application Development with Ext JS and Spring by Gerald Gierer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required