|
Data Table Editor |
Top Previous Next |
|
The Data Table Editor (DTE) is a component used to edit or view a single Data Table. It is used by the Properties Editor to edit context variables, by the Event Log to view Data Tables associated with events, by the Edit Data UI Procedure to edit function input parameters and view its output, etc.
Most elements of the Data Table Editor, column headers and data cells usually have tooltips which pop up when the mouse hovers over the element. The tooltip for the column header contains the help string specified in the table's Record Format, if any. The tooltip for a cell contains a string representation of the cell's value, and the type of field used for this cell. For example, it may be useful:
Table columns can be resized and reordered. To resize a column click on its margin and drag the mouse to left or right. To change column order, drag the column header and drop it in a new location. Double-clicking the separator between headers of two columns will auto-fit the left-hand's column width (i.e, resize it to fit everything in it). Data Table Editor may work in two modes:
In the read-only mode editing is disabled. There are also two data presentation modes:
In multiple records mode, the table header shows the description for every column, and every row represents one Data Table record:
Single record mode is used by the DTE when the table being edited contains just one record, and no extra records may be added. This mode features a two-column layout: the left column shows field names, and the right one contains values:
Editing Data If the DTE is in the normal (editable) mode, the values within the table may be changed. The format used for a given cell depends on the Record Format. There are some special cases when non-standard editors are used: If the field is declared as Nullable and its value is NULL, it is shown as <Not Set> in DTE. Click the cell to start editing and set a value for it. You can reset the value back to NULL using the Reset to Default operation in the cell context menu.
If a field format contains selection values, editing is performed using a drop-down box:
Integer, Long, String and Float values are edited in a normal text field:
Sometimes String values can be alternatively edited in a Text Area editor that is shown in a separate window:
Another option for editing String values is the more advanced Text Editor. It is used when a String field contains Java code, XML document or other text data suitable for syntax highlighting. Boolean values are edited using checkboxes and are represented by Yes (for TRUE) or No (for FALSE) in read-only mode:
Date and Date/Time values are edited using a Date Picker:
Data Table fields (i.e. fields whose values are actually entire data tables) are edited by a nested Data Table Editor that appears in a separate dialog. The dialog pops up when you click in the cell containing the embedded Data Table:
Colors are selected using a Color Picker component:
Data Block fields may contain images, sounds or generic files. Files, sound and images are inserted into the cells using a File Selector component:
Images contained into the Data Table are displayed as a thumbnail (see previous screenshot). Sounds can be played back directly from the table cell:
Context paths and context masks are specified using a context mask selector component. It looks like a usual text field with a button on the right:
When editing the path/mask, you can press Space to get list of contexts that may be appended to the currently edited mask. Choose a context from the drop down list to append it to the current mask:
Pressing the [...] button opens an Entity Selector component to allow selecting the mask by pointing and clicking. Much like context masks, expressions are edited in a text field with a [...] button that opens an Expression Builder to allow creating and validating an expression in point-and-click mode. Context Menu The context menu in the Data Table Editor contains several operations:
When the Data Table Editor is being used to modify the value of a context variable (as opposed to raw data coming from another source), the context menu within the editor contains additional actions related to this variable. Sorting and Filtering
Sorting Data You can sort the rows of a Data Table being edited or viewed. To enable sorting, click the column header. Clicking a header already used for sorting will reverse the sorting order. Filtering Data Another convenient feature is data filtering. To enable filtering, enter filter text in "Filter:" text field and press Enter. Table contents will be filtered to show only rows where at least one field matches the filter. There are three modes of filtering. Filtering mode is selected by consecutive clicking on an icon next to the filter text field:
If the the Data Table Editor is working in multiple records mode, you can change the value of all cells in any column at once. To activate Fill Down, right-click the header for the desired column. A Fill Down window will pop up:
Enter or edit the value in the popup window and click the Fill Down button to write this value to all cells in the selected column. Click Cancel to abort the operation. The Data Table Editor toolbar provides access to the operations that may be performed with the data table.
Some (or even all) toolbar buttons may be hidden or disabled if their respective operations are not available in the editor. A button is hidden if the operation is not applicable to the current table at all. If an operation is simply not available at the moment (e.g. the Remove Selected Rows is disabled when no rows are selected), its button is disabled. Data Table Editor has embedded support for data exporting/importing from a number of well-known file formats. Here is a list of supported formats:
During import operation, data read from a file is not inserted into Data Table Editor as is. Instead, it is merged with the data currently contained in the Data Table Editor using a Data Table Smart Copy operation.
When importing data, it is possible to choose what fields will be imported. You can only import fields that exist both in the imported Data Table and Data Table currently being edited, and are writable in the table being edited:
If you are exporting to or importing from a Character Separated Values (CSV) file, you will be prompted to specify CSV encoding/decoding options. Examples Original Data Table:
The same table exported to CSV format (Header Record contains field descriptions, screenshot taken in a text editor):
The same table exported to HTML format (as shown in a web browser):
The same table exported to XLS format (as shown in Microsoft Excel):
Report Creation and Export/Import When the Data Table Editor is in Multiple Records Mode you can generate a report, based on the data being viewed or edited. Click the Make Report button on the toolbar and specify options for the report:
When you click OK, AggreGate Client generates a report design, fills it with the data from the editor, and opens the generated report in a Report Viewer. You can then print it, or export it to PDF, HTML, CSV etc. This is what such a report looks like:
Processing Data Bindings The Data Table Editor handles bindings contained in the format definition of the Data Table being edited. When the editor loads, it reads the list of bindings for the table and processes them in the background. Bindings are evaluated and used to change cells in the table being edited. Binding expressions used by Data Table Editor may contain relative links to the cells of the table being edited, along with links to data from various contexts. To find out how to create these links, learn more about data bindings here. |