Creating the Quotation list
So, let's straightaway start with preparing the CT to create the Quotation
list. We will create view_list.htm
and view_list.js
(source file: 01_creating_quotation_list/ct/quotation/view_list.html
).
The view_list.html
file is a reproduction of other view
files, and so inside the internal reading, change the .js
file in the view that's being read to view_list.js
(source file: 01_creating_quotation_list/ct/quotation/view_list.js
).
The view_list.js
file is also almost similar. It's only a little bit different.
Ext.onReady(function() { Ext.create('MyApp.store.Customer'); Ext.create('MyApp.store.QuotationItem'); Ext.create('MyApp.store.Quotation'); Ext.create('MyApp.view.quotation.Quotation', { activeItem: 0, ...
By now, preparing the CT should have become a straightforward process.
Unlike edit, set the activeItem
in the list to 0
. If you check how it looks in a browser, only the Quotation
panel will be displayed.
Let's begin to build the inside...