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
Conferences
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 Quotation form


The Quotation form is mostly the same as Bill and MyAccount, but there is one big difference—there is a grid inside the form panel.

At first glance, the store that is configured to the grid panel looks as though it will communicate directly with the server, but this is not the case. To the very end, this form panel handles fields, so it doesn't handle the grid directly and there is no need to separate form data sending and grid data sending.

Then how do we solve this? The answer is to hand it a hidden field and make it save the grid data in the form of JSON. So, the grid store is fine to be left as a MemoryStore.

First, implement it to the same point as MyAccount. Because Quotation will hold a list, add to it so that refs can also acquire a list view.

This source code is very similar to the implementation from the previous step of the following classes:

  • MyApp.controller.myaccount.MyAccount

  • MyApp.controller.myaccount.Edit

Try implementing for Quotation remembering what we did...

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