Loading the grid and implementing toolbar buttons
Generally speaking, a grid is not a grid if it can't read data. For the time being, let's just read the data from the database and display it in the grid (source file: 05_loading_the_grid_and_implementing_toolbar_buttons/php/classes/MyAppQuotation.php
).
Here we'll implement the getGrid
method for MyAppQuotation.php
that was returning empty data.
Note
The code for this is a little bit long, so please refer to the source file to see the code.
If we put any old data in the database it will be displayed. But, because the items we want to display have increased slightly, we need to amend the JavaScript source code. Add the two files addr
and note
to the Quotation
model (source file: 05_loading_the_grid_and_implementing_toolbar_buttons/app/model/Quotation.js
).
Now let's add the two files we added in the previous step to the columns
property in MyApp.view.quotation.List
(source file: 05_loading_the_grid_and_implementing_toolbar_buttons/app/view/quotation...