Main Menu

SIS 2000+ Table Editor


Last update: 09/02/2000 jmm

A base table in SIS 2000+ is a list of codes, a description of the code, and in many cases, other fields which dictate any actions related to the code. Codes are used extensively throughout a relational database to facilitate data storage, save space, and for ease of use. The Table Editor maintains the information in the SIS 2000+ base tables. It is a tool used primarily by the technical support staff and administrators responsible for installing SIS 2000+ and maintaining the SIS 2000+ environment.  It will edit any table whose sntables.tecanedit field is > 0, and will dynamically reconfigure the display regardless of the number of fields in that table.

When a table is first selected (by selecting an entry in either of the Table combo boxes or by using the Find button), all fields of all existing records (rows) are displayed in a grid.  The column widths may be changed by dragging and the form can be widened or lengthened.  To make a change to a table, press the Edit button.  Another table can then not be selected until Undo, Done or Save is selected.

When a table is first selected, it is checked for NULL values.  If any are found, a message is displayed and the user is asked if the NULLs should be fixed.
 

1. Open the Table Editor
From the System Menu, click on the Table Editor icon button.


                                   Fig. 1 - main screen, read-only mode
 

Screen layout -
The default view is read-only, indicated by the gray-colored grid. The name of the table selected is displayed in the two Table fields in the upper left corner of the screen. The first field is an English description of the table; the second field is the actual table name as used in the database model. The table elements are displayed as a grid with columns for each field and rows for each record.

Default field formats -
The data in each column (field) is displayed in one of the following ways by default:

System administrator notes -
By modifying a local cursor created in the Load event, the default display format for any field can be changed.  The items that can be specified are:
 

2. Find a Table

2.1 Using drop-down lists
Select a table to edit from either of two drop-down lists in the Table fields (Fig. 2).


Fig. 2

2.2 Using the Find command
Click on the Find command button to open the 'Find Table' form (Fig. 3); a master list of all editable tables in the system.


Fig. 3
 

2.2.1 Select a sort method
The list will be in ascending alphabetical order either by Description or Table Name, depending on which option is checked in the lower left radio buttons (Fig. 3).

2.2.2 Select a table to edit
Use the scroll bars to view the entire list. Click on the target entry in the list until it is highlighted, then click on the Select command button. The 'Find Table' form will close and the view will revert to the main screen with the target table displayed in the read-only mode.
 

Search Shortcut -
Instead of using the scroll bars to find a table in the list, type the first few letters of either the Table Name or the Description (depending on which sort method is selected) in the Search Description field (Fig. 4). The focus will jump to the first matching entry as the search string is entered. Once the target entry is found, click on the highlighted entry to activate the Select button.  Then click on the Select command button. The 'Find Table' form will close and the view will revert to the main screen with the target table displayed in the read-only mode.


Fig. 4

 
 
2.3 Fix Null fields?
A "NULL" in a field is a place holder data string that occurs when a table gets populated by a script (such as SQL) or when a new field is added to a table as a result of a model change in the database structure. Nulls should be fixed whenever possible. When the target table to view or edit is first opened and it contains NULL fields, a message will appear prompting the user to fix the null fields (Fig. 5). Answer "Yes" to fix or "No" to ignore the nulls. If "Yes", this action replaces NULLs in character fields with blank and in numeric fields with zero.


Fig. 5

 

3. Edit a Table
Click on the Edit command button to activate the edit mode of the selected table, indicated when the grid turns from gray to white (Fig. 6)

Depending on the size of the selected table, the default view may not show all of the rows and columns of data. Scroll right or left or up and down to view the rest of the data or use the mouse to expand the borders of  Table Editor window so that more rows and columns are visible.


Fig. 6  - edit mode, window resized, focus is on the Description field of  "In School Suspen" record.
 

3.1 Edit fields
Use the Tab key or the arrow keys on the keyboard to move the focus from row to row and field to field or click directly on the field to be edited until it is outlined in blue. There are several editing techniques depending on the type of field:
6. Check referential integrity
The Save action checks for any errors created during the editing process. If illegal modifications have been made, the Save will not be performed. However, before a save is attempted, a referential integrity check can be executed while still in the edit mode using the Check command buttons.

The Check button performs the following checks on the current table:

The Ck All button performs the Check function on all tables.

If a warning message occurs after running a Check in the edit mode, click on "OK" to close the message. Reverse the illegal editing by clicking on the Undo command button. The view will revert to the read-only mode.
 

7. Print a table
Click on the Print command button to print a report (Fig. 20) of the currently selected table.


Fig. 19
 
In the 'Report Selection' dialog that appears (Fig. 19) choose a destination for the report by clicking in one of the radio buttons and then clicking "OK" to begin the action selected.

For more details on the various SIS 2000+ printing options listed above, see Reports & Reporting.


Fig. 20 - sample report
 

8. Exit the Table Editor
From the read-only mode click on the Quit command button to exit the program.


Main Menu