Last page update: November 23, 2011
In the following sections we discover the TableHandler GUI.
Let’s see this image:
![]()
- The Tablehandler view class and form class take place into the central pane (point 2)
- Points 1, 3 and 4 belong to the FrameIndex component
The combination of a TableHandler in a project with the frameindex component is a good solution for having a quick pre-defined gui.
However, in this page we’ll talk about the view class and form class GUI, that is, the central pane (point 2). For more information on points 1, 3 and 4, please check the FrameIndex page.
The view-data window is the GUI of the TableHandler’s View class.
It allows to:
- visualize the records saved by the user
- make a query to search into records
Let’s see this image:
![]()
The view window has been divided through some colored box; in particular you can see:
- the top bar (red box)
- the action bar (green box)
- the central pane (blue box)
- the bottom bar (yellow box)
In the next sub sections we explain in all the details these parts.
![]()
The action bar allow to perform many actions. In particular you can find:
- the search box (point 1)
- the query operator box (points 2 and 3)
- the query value box (point 4)
- the run query button (point 5)
- the query action buttons (point 6)
- the query result numbers (point 7)
- the add and delete buttons (point 8)
- the lock button (point 9)
![]()
In the search box user can select the columns through which there will be made a query: a query allow to reduce the records visualized in the central pane in order to find the record one want to get.
![]()
The query operator allow to select the SQL operator through which there will be made the query.
In the left box you can specify the “NOT” operator.
In the right box user can choose between:
- contains: look for columns that contains the characters typed from user (case insensitive)
- starts with: look for columns that starts with the characters typed from user (case insensitive)
- equal to: look for columns that match entirely with the characters typed from user (case sensitive)
- word start: look for columns that contains a word that starts with the characters typed from user (case insensitive)
- starts with chars: look for columns that starts with the characters typed from user (case sensitive)
- is null: look for null columns
- is null or empty: look for null or empty columns
- in: TODO
- regular expression: add a regexp
- greater than: look for columns that contains a greater number respect to a number typed from user (works for numerical columns)
- greater or equal to: look for columns that contains a greater or equal number respect to a number typed from user (works for numerical columns)
- less than: look for columns that contains a smaller number respect to a number typed from user (works for numerical columns)
- less or equal to: look for columns that contains a smaller or equal number respect to a number typed from user (works for numerical columns)
- between: look for columns that contains a number contained between two numbers typed from user (works for numerical columns). The two numbers must be written separated by a comma, like value1,value2
![]()
In the query value user can specify the value for the SQL query
![]()
The run query button allows to start the query. To start a query, you can otherwise press “ENTER”
You find here some buttons that allow user to perform different actions. You can modify the preset of buttons following the instructions of the TODO section
In particular, user finds the following buttons:
![]()
Query tool: allow to perform more complex queries and save them
![]()
Export: export the result of the query in an excel file
![]()
Print: print the result of the query
![]()
Batch: allow to start an action batch
![]()
Mail: TODO (not working yet)
![]()
This icon shows the numbers of records that match with the query (the number with the blue background) respect to the total number of records (the number with the yellow background)
![]()
The delete button allow to permanently cancel some records. User must select the records he want to cancel before clicking this button. The add button allow to add a new record. The gui for the creation of a new record is described in the data-entry window
Note
to use the delete and the add buttons, user must have the right permits. For more information about the permits, check the <authentication> section of the instanceconfig page
![]()
The lock button allow to unlock the add and delete buttons, in order to delete, modify or create new records
The central pane contains all the stuff you define in the View class.
Usual the central pane is used to visualize a grid with the records saved in the database:
![]()
The columns pane allows user to see all that records that satisfy his SQL query. Every record show the columns you have inserted in the th_struct method.
Through the configurable-views bar (opened through the button “1” in the figure) user can create more than one preset views
![]()
The “configurable-views bar” allows the user to create views.
In the image, “id”, “Code”, “Description”, “Full Descr.”, “Product Type” and “Products Type” are the name of the columns of the database table.
In particular, “Products Type” is colored in green because it is a relation column
.
Let’s see all the buttons:
![]()
Change from “Base view” to a custom view (the button will change its label when you select another view)
![]()
Favorite view: Select the current view as the favorite view
![]()
Save view: Save a custom view
![]()
Delete view: Delete a custom view (you can’t delete the “Base View”)
![]()
The bottom bar is used by default to send message to user (like ... TODO).
You can customize it ... TODO
The data-entry window is the GUI of the TableHandler’s Form class.
It allows to:
- modify, add or delete a single records (user must authenticate himself with the right permits to perform these actions - check the authorizations page for more information)
Let’s see this image:
![]()
The form window has been divided through some colored box; in particular you can see:
- the top bar (red box)
- the action bar (green box)
- the form pane (blue box)
- the bottom bar (yellow box)
In the next sub sections we explain in all the details these parts.
![]()
The top bar contains:
- the title of the record (you can customize the title. Check here TODO for more infomation)
- the workdate
![]()
The action bar contains:
![]()
Dismiss button: return to the view
![]()
Revert button: revert the changes after the last save
![]()
Save button: save the record
![]()
Locker: lock/unlock all the action bar buttons
![]()
Add/Delete buttons: add a new record / delete current record
![]()
Navigation buttons: Allow to move from a record to another one
Semaphore: it indicates the save status; in particular:
![]()
green light: the record is saved
![]()
yellow light: the record has unsaved changes
![]()
red light: some condition for a correct save is not satisfied (for example, a validation is not satisfied); correct the wrong field in order to save the record
![]()
gray light: there are no record saved (visible only with the stackTableHandler)
In the form pane you can find all the stuff defined in the Form class.
In particular, you can define a form through which user can save its new records (or modify the existing ones), joined to some webpage elements or any other stuff.
Let’s see this image:
![]()
The image is an example of a simple form with a TabContainer including in the first tab a formbuilder
![]()
The bottom bar is used by default to send message to user (like the correct act of a record save).
You can customize it ... TODO