O'Reilly logo

Ext JS Data-driven Application Design by Kazuhiro Kotsutsumi

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

Managing dirty and undirty apps

Naturally, it's good if the saving process happens every time you press the Save button.

However, if possible, wouldn't you prefer to have the Save button available only when changes have been made?

Here, we will implement the logic into the controller that will judge whether or not changes have been made after an input.

MyAccount

First, we will implement a simple form from MyAccount. But, before that, Quotation and Bill separated the controller, but we didn't make the change in MyAccount! Let's separate it quickly and add it to app/Application.js.

Using the MyApp.controller.bill.Edit class as reference, let's go ahead and make the MyApp.controller.myaccount.Edit class.

Apart from the class name, it's exactly the same ...

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