Documente Academic
Documente Profesional
Documente Cultură
Chapter 6
Editing Data
In this Chapter
Introduction
The Workspace Editor Window
Selecting and Editing Data
Rearranging Data
The Menu
Default Configuration File
Introduction
The Gemcom for Windows workspace editor is a very versatile
utility that allows you to enter data into the workspace or to view
and edit data that is already in the workspace. The data is
displayed in two spreadsheets: the top spreadsheet always contains
data from the header table, and the bottom spreadsheet shows data
from any of the other tables in the current workspace.
Exploration
Page 2128
Menu Bar
Title bar
Menu bar
Header
table
spreadsheet
Secondary
table
spreadsheet
Status bar
Menu
This area contains the menus that you will use to manipulate the
workspace editor data and how it is displayed. The menu is
explained in detail later in this chapter.
Page 2129
Exploration
Page 2130
Be careful when you select or edit data not to overwrite data you
want to keep. If you change data in a cell by accident, do not move
the cursor from that cell. Press the [Esc] key immediately to revert
to the old entry. As soon as you move the cursor out of a cell, any
changes you made to that cell are automatically saved to the
workspace. There is no way to undo your changes or recover your
old data once it has been modified and saved.
Page 2131
[Tab]
[
]
[
]
[
]
[
]
[PgUp]
[PgDn]
Exploration
Page 2132
[Home]
[End]
[Ctrl] [E]
Page 2133
Click on the
buttons or drag the
slider to scroll
through data either
horizontally or
vertically.
Exploration
Page 2134
The Menu
The workspace editor menu bar has six menus available on it.
These are as follows:
File. The commands on this menu allow you to exit from the
workspace editor and from the main program.
File
The File Menu in the workspace editor contains two commands,
only one of which is unique to the workspace editor:
Page 2135
Exit Program
Selecting this command will close the entire application rather
than just the workspace editor.
Edit
The Edit Menu in the workspace editor contains eight commands
allowing you to edit the data displayed in the spreadsheets.
Cut Row
This command removes the highlighted row(s) to the Windows
clipboard.
Copy Row
This command copies the highlighted row(s) to the Windows
clipboard. Note that because FROM values must be unique within a
table, if the original row contains a FROM value, its corresponding
value in the copy will be increased by one. You can then adjust the
FROM value as required.
Paste Row
This command inserts the current selection on the Windows
clipboard into a new row at the end of the table in the active
spreadsheet.
Exploration
Page 2136
Delete Row
This command deletes the highlighted row from the workspace
without placing it on the Windows clipboard.
Append Row
This command inserts a blank row at the end of the current table.
Insert Row
This function allows you to insert records into specific locations in
unsorted tables for which the order of the data is important, such
as Survey, Point, Polygon and Traverse tables. These fields
typically have a field called PCX_SEQ_NO, which is maintained
internally by Gemcom for Windows and is not visible in the
Workspace Editor. You cannot modify or view the data in the
PCX_SEQ_NO field. To determine whether your current table
contains this field, you can view the table structure in the
Structure Editor (see Chapter 4: Creating and Modifying
Workspace Structures). The Structure Editor automatically adds
the field to certain types of tables when they are created.
If the table into which you are trying to insert a new record does not
contain this field, you will see the following error message:
Page 2137
Figure 6-4: Workspace Editor Insert Row sort order error message
To insert a record into a table with a sequence number field, follow
this procedure:
1. Ensure that the table into which you wish to insert the new
record is unsorted by selecting View } Unsorted.
2. Position the cursor in the record before which you wish to insert
a new record. The record number of the current record will be
assigned to the new record, and all subsequent record numbers
will be adjusted accordingly.
3. Select Edit } Insert Row. The new row will be inserted before the
current record, and the record numbers will be changed to
reflect the new addition.
4. The cursor will be located in the new record. Enter the
appropriate values in the individual fields.
5. Save the new record by pressing the [Enter] key or clicking
another record. If you move the cursor out of the new record
without entering any data, the Insert Row operation will be
cancelled, and the blank record deleted. You can also cancel the
Insert Row operation by pressing [Esc] while the cursor is still
located in the new record.
Fill
This command allows you fill a selected set of fields within a range
of records with identical or related information. To use this
command, follow these steps:
Exploration
Page 2138
Prefix. This is the first part of the field entry and never
changes. It can be more than one character or value.
Suffix. This is the last part of the field entry and never
changes. It can be more than one character or value.
Page 2139
For example:
Prefix = B
Seed = 1
Suffix = A
Increment = 1
3. When you have entered all required parameters, click OK. The
data that you entered will be used to update the highlighted
fields within the range of records specified.
Goto
The workspace editor Goto Menu contains four commands which
allow you to select the active record (the record in which the cursor
is located).
Exploration
Page 2140
Find Record
You can select this command to bring up a dialog box into which
you can enter parameters for finding records containing particular
data entry requirements.
To find a record containing specific data, follow this procedure:
1. Ensure that the mouse cursor is located in the table which
contains the record you wish to find.
2. Select Goto } Find Record. Enter the following parameters:
Search For. Enter the data entry you wish to find. You
must enter the entire numeric value or text string exactly
as it appears in the desired record. You cannot use wild card
characters or truncated (partial) entries in your search
string.
Page 2141
View
This menu has three commands which allow you to sort the records
in the selected table. For more information on sorting records, see
Rearranging and Sorting Data on page 2132.
Unsorted
Select this command to view the records in the order in which they
were saved in the workspace.
Exploration
Page 2142
Sort Ascending
Select this command to view the records in the active table in
ascending order according to the field (column) in which the cursor
is currently located.
Sort Descending
Select this command to view the records in the active table in
descending order according to the field (column) in which the
cursor is currently located.
Options
The workspace editor Options Menu contains four commands which
allow you to determine the configuration of your workspace and to
define some parameters for data entry.
General
This command brings up the following dialog box with parameters
that apply to all fields in the workspace:
Page 2143
Table
This command brings up a grid-style dialog box into which you can
enter parameters on a field-by-field basis for each table (see Figure
6-8).
Use this dialog box to enter the following parameters for each field
name in the table, as applicable or desired.
Edit Mode. When you place the cursor in this field, you will see
a pull-down list arrow displayed. Click that arrow to display the
following three choices:
Hidden. Selecting this choice means that this field will not
be displayed in the workspace editor.
Exploration
Page 2144
Page 2145
Prefix. This is the first part of the field entry and never
changes. It can be more than one character or value.
Suffix. This is the last part of the field entry and never
changes. It can be more than one character or value.
You can click the Move Up and Move Down buttons on the
right-hand side of the dialog box.
You can use the mouse to drag the field into the desired
position.
You will also notice that one of the field name buttons is entitled
Left/Right Separation. The position of this separator can also
Exploration
Page 2146
Cursor
Location
Left/Right
Separator
Page 2147
Load Configuration
This command allows you to load an existing workspace editor
configuration (*.CFG) for the current workspace. The loading
process must check all the table name references and field name
references against the current workspace. If you load a specific .CFG
configuration file, this will also become the default configuration
file (.WED) upon exiting the Workspace Editor.
Save Configuration
After changing any of the display attributes, use this command to
save the current configuration of the spreadsheets in the workspace
editor to a configuration file. This file is separate from the default
configuration file (see page 2148) and is automatically given a .CFG
extension. This command is useful if several people are using the
same workspace and each has personal preferences about how the
general and table options should be set as well as the order in
which the columns should appear. You can also use it to save a
number of different spreadsheet configurations depending on which
part of the data you are most interested in at a given moment.
Help
The Help menu in the workspace editor contains four commands
which allow you to get information about your Gemcom system and
to access online help.
Contents
This command allows you to access the online help for the
workspace editor through the online help contents.
Exploration
Page 2148
Search
This command allows you to search for specific topics in the
workspace editor online help.
About Gemcom
This command is identical to the Help } About Gemcom
command for the complete Gemcom for Windows program. It
displays the current version number, information about your user
license and about contacting Gemcom Software International.
Gemcom Settings
This command is identical to the Help } Gemcom Settings
command for the complete Gemcom for Windows program. It
displays information about the current date and time, viewing
mode, active plane, and project and workspace.
Page 2149
for the workspace. The next time you open the workspace in the
Workspace Editor, you will see the following error message:
Exploration