1. General information
1.1. Description of the control
TimeTable is a timetable or Gantt chart.
1.2. Create a new control
- A detailed description of creating new controls in the edit form is provided in the separate guide Creating edit form controls.
1.3. Edit or delete a control
- For each existing control, a pencil icon appears on the left side of the edit form to change or delete the control's settings.
- Individual controls can be moved vertically in the edit form using the Drag&Drop method. Moving consists of grabbing the control, preferably after its name located in the left column of the edit form, and then dragging it to the desired place in the edit form.
- Controls can be moved only with the “Drag & Drop” or “Multi Drag & Drop” check box located above the toolbar with controls selected. For security reasons, these check boxes are cleared after each login to the application, so that a control is not moved by accident.
- With the “Multi Drag & Drop” check box selected, a check box is displayed next to the controls instead of the pencil icon. Controls marked with the check box are moved together with the dragged control and keep their mutual order.
2. List of tabs in the control settings dialog
- General – Setting general properties
- Resources – Setting up Gantt chart resources
- Text – Setting of columns displayed in a timetable or gantt chart
- Tooltip – Settings for columns displayed in details
- Help – Help text settings
- Rights – Rights settings
2.1. “General” tab
2.1.1. Name
- The name of the control displayed in the header of the timetable or Gantt chart.
2.1.2. Dictionary...
- The dictionary displays a list of names of other controls, forms, view pages, categories, applications, application groups, and database query columns and headers used throughout the NET Genium installation.
- The dictionary search is used to design the correct control name and to maintain the consistency of the nomenclature throughout the application so that controls with the same meaning located in different places in the application are named in the same way.
2.1.3. Data source
- The data source defines the source database records displayed in the timetable or Gantt chart.
- Data source settings are made in the graphical designer of database queries. A detailed description of the database query designer is provided in the separate guide Database query designer.
2.1.4. Type
- Gantt diagram
- Timetable A – a timetable with 15-minute cells
- Timetable B – a timetable with one-hour cells
- The “Default” and “Title” fields are offered in the dialog only for the “Gantt diagram” type.
- The timetable displays one week – the week of the first displayed record, or the current week if no records are displayed. Its rows are the days from Monday to Friday. Saturday and Sunday are added if an event starts on one of them. Its columns are the hours from 6 to 22, extended so that events starting earlier or ending later fit in, including events from weeks other than the displayed one.
- If the name of the control ends with the characters “++”, Saturday and Sunday are always displayed in the timetable. The characters “++” are not displayed in the name of the control.
Details
- The count in the title of the control in the form “x / y” states how many events are displayed (x) out of the total number of loaded records (y).
2.1.5. Default
- The default view of the Gantt chart determines how events are grouped by date. The user changes the view in the header of the Gantt chart and the selected view is remembered for the user (not for the anonymous user). Changing this field and saving the control resets the view for all users.
- If the “Time span by” field of the data source is filled in, a “from-to” filter is displayed above the Gantt chart. If the default “From” and “To” values are not filled in the query, “From” is prefilled with the first day of the current month and “To” according to the view: for days with the last day of the third month and for weeks with the last day of the sixth month counted from the current month, for months with the last day of the year two years later and for years with the last day of the year nine years later.
Details
- The displayed period is shortened to at most one year for days, seven years for weeks and twenty years for months. If the “To” value entered in the “from-to” filter is earlier than “From”, it is set to the “From” value. If the entered period is shorter than one month, “To” is extended to the date one month after “From”. The adjusted “To” value is also written to the filter. Without the “Time span by” field, the Gantt chart displays the period from the oldest to the newest displayed record, shortened to the same maximum length. In this case, it is not extended to one month.
- The Gantt chart displays the period aligned to whole weeks, months or years according to the view, plus one unit of the view (day, week, month or year) before its start and after its end.
- The drop-down list offers the following grouping methods:
- Days – grouping of events by day
- Weeks – grouping events by week
- Months – grouping of events by month
- Years – grouping of events by year
2.1.6. From-To
- Select a text column that receives its default value when a new record is created by clicking on a free space, provided that the new event has a different start and end. If the start and end are the same, this column and the “To” column remain empty.
- The display of events in the timetable or Gantt chart does not depend on this column.
Details
- The text written in the default value text box of the control is filled in as it is stored. Variables and server functions in it are not evaluated, the selected type of default value (for example “Current user” or “From query”) does not apply, and the opened edit form does not overwrite the filled-in value with the default value of the control.
2.1.7. From
- Select a column that specifies the start date of the event in the timetable or Gantt chart.
2.1.8. To
- Select a column that specifies the end date of the event in the timetable or Gantt chart.
- An end without time (at midnight) means that the event lasts until the end of that day.
Details
- If the value is empty, the event ends at the moment it starts. If it starts at midnight, it thus lasts the whole day.
- If the end is earlier than the start, the two values are swapped. If the “Time span by” field of the data source is filled in, such an event is displayed in the Gantt chart only if it lies entirely within the displayed period (for a user with their own time zone, with a margin of one day on each side).
- If the “From” column is a column of a joined table, clicking on a free space opens a new record of the edit form to which the “From” column belongs, not of the edit form of the data source. The “From-To”, “To” and “Title” columns are prefilled only if they belong to the same edit form as the “From” column.
- If the user has no right to the control selected as the “From” or “To” column, the text “No records found” is displayed to the user instead of the timetable or Gantt chart.
2.1.9. Title
- Select a column that specifies the title (resource) of the event in the timetable or Gantt chart.
- Headings (resources) are displayed as individual lines of a Gantt chart.
- A second column can be selected next to the title column. If the resources are entered neither manually nor by a query, the rows of the Gantt chart are formed by the combination of both values separated by a slash (“ / ”). An empty second value is not appended. With resources entered manually or by a query, events are assigned to rows by the value of the first column only.
Details
- Rows created from the values of the title columns are named after the value stored in the database, without formatting (for a foreign key, the ID of the referenced record), and are ordered by the first occurrence of the value in the sorted records. For a foreign key, a list of resources “From query” with “Save resource ID to the database” checked is therefore more suitable. A value entered in several languages is, however, displayed in the row name in the language of the user.
- An event that matches no row of the Gantt chart is not displayed and is counted only in the total number of loaded records in the title of the control. No row is created for an empty value (with two columns, when both are empty).
2.1.10. Color
- Default color of all events in the timetable or Gantt chart.
- Each event can have its own color set. In the data source settings, the “Color by” column must be set, according to which the color of the event is determined.
2.1.11. Options
- Allow entering new records
- Checking this box determines whether to allow the user to be redirected to a specific edit form in order to create a new record in the database by clicking on a free space in the timetable cell or Gantt chart.
- Clicking on a free space only prefills the term and resource as default values and opens the edit form. The new record is created only when the form is saved.
- In the control dialog the box is disabled and saving the dialog clears it. It can be turned on only by writing the implementation model.
Details
- Unlike clicking on an event, clicking on a free space does not save the record of the edit form in which the control is placed. When the edit form of the new record opens, unsaved changes to the record of the form are lost and the new record is not assigned to the record of the form as a nested record by itself.
- Deny opening records
- Checking this box determines whether all users should be denied access to the edit form in order to open the displayed database record by clicking on an event in the timetable or gantt chart.
Details
- Clicking on an event first saves the record of the edit form in which the control is placed, and only then opens the record of the event. If the record of the form has not changed, only the write to the database itself is skipped – the “OnBeforeSave” and “OnAfterSave” scripts run anyway. If the user may not change the record of the form, the record is not saved and the scripts do not run.
2.2. “Resources” tab
- Definitions of resources that appear as individual lines of a Gantt chart.
- The resource radio button contains the following two types of resource definition:
- Separated by Enter – the list of resource values is set manually, in a text box using values separated by enter
- From query – the resource list defines a database query that is evaluated when opening or updating an edit form
Details
- If the resource query ends with an error, the Gantt chart is displayed without rows and the error is written to the “Errors” log.
2.2.1. Save resource ID to the database
- Checking this box determines whether the database event records have a foreign key value stored in the resource value that references the primary key of the resource.
- The dialog offers this box, and it applies, only when resources are defined “From query”.
2.3. “Text” tab
2.3.1. Columns
- Definition of the columns displayed in the text box of a timetable or Gantt chart event.
2.4. “Tooltip” tab
2.4.1. Columns
- Definition of columns of details displayed when hovering the mouse over a timetable or Gantt chart event.
2.5. “Help” tab
2.5.1. Help
- In the edit form, the help text is displayed after clicking the “Help...” button in the toolbar that appears when the mouse pointer hovers over the header of the timetable or Gantt chart. A help icon in the header indicates that help is available.
- Text – the help text is defined by a manually entered text string in a multi-line text field below the radio button
- The From query option is not available for this control.
- A detailed description of the help text is provided in the separate guide Layout settings.
2.6. “Rights” tab
2.6.1. Rights
- Rights define a list of user groups and users who have permission to view the control on the edit form.
2.6.2. Replace rights to other controls
- The “Replace rights to other controls” function is used to unify the rights within the entire edit form for controls that are related in terms of rights.
- Thanks to the “Show...” link, it is possible to display a list of all controls in the edit form, including setting the rights of these controls. A check box is displayed for each control to select it. When the control is saved, the same rights are then set for the selected controls.
- An alternative for unifying rights within the entire edit form is to display the report available from the “Rights of child objects” tab in the edit form settings.
2.7. “Save”, “Delete”, and “Close” buttons
- “Save” button – Saves changes to the control settings.
- “Delete” button – Permanently deletes the control.
- “Close” button – Closes the control settings dialog without saving changes.