1. General information
1.1. Description of the control
DataSet is a multi-source view table that displays database records retrieved by a query from a database, with the possibility search and record filtering.
- Columns that have the same name in the merged view tables are displayed in the dataset as one common column.
- If the database query of any of the displayed view tables has the “Time span by” field filled in, a “from-to” filter is displayed above the dataset. Its default time span follows the query of the first such view table. If the query has no default values filled in, it is the span from one month ago to the last day of the current year.
1.2. Create a new control
A new dataset can be created as follows from the view page using the toolbar with controls:
- First, clicking the mouse on the view page determines the position in which the new dataset should be placed. This will highlight the selected position with a gray horizontal line. Then just click on the “DataSet” item in the toolbar of the view page, fill in the attributes of the new control in the newly opened dialog, and then save. This will insert a new dataset at a pre-selected location on the view page.
- If the desired position is not determined before inserting a new dataset, the new dataset will be inserted at the end of the view page.
1.3. Edit or delete a control
- For each existing control, a pencil icon appears to the left of the control page to change or delete the control's settings.
- Individual controls can be moved vertically on the view page using the Drag&Drop method. Moving consists of grabbing the control, preferably behind its name, and then dragging it to the desired location on the view page.
- 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
- View tables – View table column settings
- Search – Search settings
- Rights – Rights settings
- Administration – Setting other properties
2.1. “General” tab
2.1.1. Name
- The name of the control displayed in the header of the view table.
2.1.2. Dictionary
- The dictionary lists the names of other controls, forms, view pages, categories, applications, application groups, and database query columns and headers used across the entire 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. Width
- The width of the control, expressed in pixels.
- If this input field is not filled in, the width of the view table will be determined automatically by the web browser.
2.1.4. Options
- Allow multiple assignments
- Checking this box determines whether a control for changing the value (a text box, a drop-down list or a check box, for TextArea and RichTextBox controls usually a link that opens a window for changing the value) should be displayed in the view table instead of the control value itself, with the option to change the value without opening and editing the record in the edit form.
- This function is applied only to controls that have the “Allow multiple assignments” check box selected on the “General” tab.
Details
- If a control has “DENYCONTROL()” in its “Notes” field, the view table displays only its value, without the option to change it.
- An anonymous user may change values in the view table under the same conditions as a logged-in user – check boxes always, other controls according to the editing rights of the record. All anonymous visitors, however, share a single user account and are therefore the owners of every record created by any of them. If the owner may change a record, any anonymous visitor may thus change records created by another visitor as well.
- For changing a value, the editing rights of the record are evaluated when the control is displayed. A change of the record owner or of the editing rights made after it was displayed applies when it is displayed again. In a control displayed earlier, the value can still be changed until the end of the user's session.
- Checking this box determines whether a control for changing the value (a text box, a drop-down list or a check box, for TextArea and RichTextBox controls usually a link that opens a window for changing the value) should be displayed in the view table instead of the control value itself, with the option to change the value without opening and editing the record in the edit form.
2.2. “View tables” tab
- Definition of a list of view tables that will be merged into one within the dataset.
- The list offers the view tables from all view pages of the same application, and at least one has to be selected.
- In the dataset, the user selects with check boxes which of these view tables are displayed. Only the view tables the user has rights to are offered. The selection is saved for each user separately. On the first display, all the offered view tables are checked. If the user unchecks all of them, the first view table in the list is displayed.
Details
- If any of the displayed view tables has the “Deny opening records” box checked, records cannot be opened from the dataset.
- A view table added to the dataset later is not checked for users who have already displayed the dataset. It is displayed to them once they check it.
- The selection is not offered to the anonymous user. All the view tables the anonymous user has rights to are always displayed.
2.3. “Search” tab
2.3.1. Options
- Activate search
- Checking this box determines whether a row with a search box and a “Search” button should be automatically displayed in the header of the view table.
Details
- On a mobile device with a small screen, the row is not displayed automatically. Regardless of this box, the row is displayed if a search term is entered.
2.4. “Rights” tab
2.4.1. Rights
- Rights define a list of user groups and users who have permission to display the control on the view page.
- For a new control, the rights are prefilled from the control at the position selected before inserting it or, if no position is selected, from the rights of the view page.
2.4.2. Replace rights to other controls
- The “Replace rights to other controls” feature is used to unify rights across the entire view page for controls that are related in terms of rights.
- Thanks to the “Show...” link, it is possible to display a list of all controls on the view page, including the settings of 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 view page is the overview of the rights settings of all controls, displayed by the “Show summary...” link on the “Rights” tab in the view page settings.
2.5. “Administration” tab
- The “Administration” tab is only displayed for existing controls.
2.5.1. Location
- Select the view page on which the control is located.
- The drop-down list contains the view pages located in the same application and in the same category as the view page on which the control stands. For a view page without a category, it offers only view pages without a category. For a new control, it contains only the current view page.
2.6. “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.
3. Individual settings
- Individual dataset settings can be opened using the “Customize view table...” gear icon in the icon bar in the header of the dataset. They are saved separately for each user.
- The “General” tab offers “Records per page” and the options “Show data source” (the list of view tables to check above the dataset), “Show upper navigation toolbar”, “Show filters”, “Show grid”, “Show sums of columns”, “Show details” and “Show tooltip”.
- Columns are set in the individual settings of the individual view tables: for each view table of the dataset the user has rights to, the “Data source” tab offers a button with its name, which opens the individual settings of that view table. A detailed description of the individual settings of a view table is provided in the separate guide View page – DataGrid.
- For users with administrator privileges, the dialog also offers the “Save to more users” tab. The “Save to more users” button overwrites the settings from the “General” tab for the selected user groups and users according to the dialog.
Details
- The individual settings icon is not displayed to the anonymous user.