The Database (DB) Editor provides a means to view all the DB Tables. Any number of DB Tables can be open for inspection, modification and/or data edit. All the data corresponding to the InfoWater Project may be accessed through these DB Tables.
All the InfoWater project data including data related to the different InfoWater Pro data elements such as pipes, junctions, tanks, reservoirs, pumps and valves are stored in the DB Tables. The DB Editor allows you to open any InfoWater Pro database and edit/modify or delete user input fields (except ID). To access the DB Tables, from the InfoWater Control Center → InfoWater button → Edit menu, select DB Editor to see the Open Table dialog box below.
From the Open Table dialog box, you can see that InfoWater Pro stores database tables in nine separate folders. After selecting the desired table from under the relevant folder, you have the option of choosing a display scope found at the bottom of the dialog box to open the desired records of the database. Once this is done, click OK to open the database table.
Data Scope - Use this section to specify the view selection of the DB Table. Choose from the following options:
The DB Editor allows you to:
Once a table has been opened, the following dialog box will appear:
New - Click New to bring up the DB Tables dialog box, where you can choose the type of table you want to see.
Close - Use this to close the Active DB Table open in the DB Editor.
Close All - Use this to close all the open DB Tables in the DB Editor.
Exit - Use this to close out of your InfoWater Pro DB Editor.
Select Box - Use the select box to toggle between the presently open DB Tables.
Open Table - Opens the database table for editing in the DB Editor.
Save Table -Saves any modifications to the current table.
Print Table - Prints the contents of the current table.
Format All - Specifies the minimum width of columns (in screen pixels), the row header scale (the height of the rows), and the column header scale (the height of the column header row).
Format Column - Align data display in the column as left justified, centered, or right justified. Specify inclusion of a comma for large numbers (1,234,567.00) or turn off comma display (1234567.00), and enter the display precision of the data. Data entered with higher precision will be rounded up or down.
Set Column Width - Use this to set the column width in your DB Editor.
Change Font - Sets the font used to display information in the DB Editor.
Sort Ascending - Sorts the table rows in ascending order of values in the current (highlighted) column.
Sort Descending - Sorts the table rows in descending order of values in the current (highlighted) column.
Block Editing - Edit the values of all selected cells in a single column with a single operation. You have 6 operation options when block editing.
Field Calculator - Use this to perform calculations based on existing data.
Field Statistics - Gives statistics on the highlighted field, including the maximum value, minimum value, sum, mean and median.
Check ID - Check the ID values of the current field.
Insert Row - Inserts one or more rows into the current table after the currently selected row. You are prompted to enter the identifier of the new row.
Append Row - Adds one or more rows at the bottom of the current table. You are prompted to enter the identifier of the new row. For patterns and curves you may enter numerous rows. The values for the new row(s) are taken from the values of the currently selected row.
Delete Row - Use this to delete rows from your InfoWater Pro Tables.
Zoom to - Right clicking on a single element provides the option to zoom to element in the map and in the Attribute Browser.
Append to Domain - Selecting several elements allows for the options to append items to domain.
Save to Selection Set - Selecting several elements allows for the options to create selection set.
Rows may be inserted, appended, and deleted only from the Extended Modeling data, Control Data, Water Quality Data, Pattern & Curve Data, SCADA Settings, and Advanced Application Data tables.
Table Record Number - A sequential counter of table records. Used for visual reference only. Column header shows the scenario data base name.
Save Status - Indicates whether or not a record has been modified. Any records that have been modified will be marked with a red check. To save any modifications, choose the Save button at the top of the table record display.
ID - InfoWater Pro component identifier used for reference by other InfoWater Pro functions and used for modeling. The contents of this field cannot be edited from the DB Editor.
Table Fields - Fields specific to the current table. The field data type (Double), (Num), (Char), etc. is displayed directly below the field name as an indication of the acceptable data format for that field. Units are shown where applicable. Field order for fixed fields (those required by InfoWater Pro) cannot be changed. Field order for custom fields can be changed.
Empty numeric data will display as “0.00” (depending on user-specified decimal precision). Empty character data will display as empty data cells.
Selected records (rows), fields (columns), or individual data values (cells) will be highlighted in black.
Non-editable fields are displayed in gray. These fields are typically graphical/locational in nature and must be edited using other InfoWater Pro functions.