Edit Control
Explore the unique ways to add and edit records in the book table.
We'll cover the following...
About the application
In this application, we have the IconButton
component to add a new book in the table that is wrapped up inside the ToolTip
component. It will appear on the left side of the title bar to open the form with blank fields. Next, we have a BookEdit
component that will show a row for editing with the fields already filled with the data from before.
This is what the application looks like:
Note: To log in, use the username
admin
and password123
.
Copyright (c) 2020 John Sheehan Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Modifications in the bookListView
module
Now that we have a view to edit book records in, there must be a way to open that view. To edit a book record, the user needs to single-click a row in the list of books. This will open up the modal BookEditView
component with the fields of ...