Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ext JS Data-driven Application Design

You're reading from   Ext JS Data-driven Application Design Learn how to build a user-friendly database in Ext JS using data from an existing database with this step-by-step tutorial. Takes you from first principles right through to implementation.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781782165446
Length 162 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Kazuhiro Kotsutsumi Kazuhiro Kotsutsumi
Author Profile Icon Kazuhiro Kotsutsumi
Kazuhiro Kotsutsumi
Arrow right icon
View More author details
Toc

The Bill form


As we know, Bill is pretty much the same as Quotation, but let's continue and implement Bill. First let's make the BillItem store class.

For Bill, it's only the class name and StoreId that differs from QuotationItem. The rest is the same, so let's try and code this by ourselves. You can check out the following source file if you want something to refer to:

07_management_of_dirty_and_undirty_bill/app/store/BillItem.js

Next comes the controller setting. Again, the following implementations are extremely similar to what came before in Quotation, so think back to MyApp.controller.quotation.Quotation and MyApp.controller.quotation.Edit and try it for yourself. If you need help, you can find the source files at the following:

  • 07_management_of_dirty_and_undirty_bill/app/controller/bill/Bill.js

  • 07_management_of_dirty_and_undirty_bill/app/controller/bill/Edit.js

Finally, lets modifying view. In the same way, this is very similar to EditView, so think back to MyApp.view.quotation.Edit and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image