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