Skip to content · Zum Inhalt

Insert a record

A table without a card can still get a new record: Insert New Record opens a dialog with a line per field, and the line becomes a record when the key and the fields it needs are filled.

Before you start

  • The table has to be one you may insert into.
  • Know the key values of the new record, and that they are not in use.

Add a record to the table

  1. Open the table with the preset and read Table No and Table Name: the new record is inserted into that table.
  2. Choose Insert New Record. The dialog opens with a line for every field of the table.
  3. Type the key value in Value on the line whose Field Caption names the key field.
  4. Type the values of the other fields the table needs, and leave the lines of the fields the table fills itself empty.
  5. Choose Insert. The record is inserted into the table and "Record inserted." confirms it.

The actions of the page above the filter and the list

What happens

The record is inserted into the table the preset names, with the validation the table asks for. A line whose key stays empty is refused with "Enter a value for the key field %1."; a key that already exists is refused with "A record with the key %1 already exists."; a field the table requires and the line does not have is refused with the table's own message. A successful insert says "Record inserted." and is written to the log.

Example

A user opens table 103 with the preset 10006, name AS, description Fabrikam, chooses Insert New Record, types ITEM-006 in Value on the line whose Field Caption is Code, types Alpine Ski House on the line whose Field Caption is Description and chooses Insert. The record is inserted, and the grid shows it beside the record the filter ITEM-002 selected.

Fill the lines of a new record

  1. Choose Insert New Record and read the dialog: it has one line per field of the table, in the order of the field numbers.
  2. Read Field Caption to find the field a line stands for, and Field No. to compare the line with the field list of the preset.
  3. Read Is Key Field to see which lines carry the key: they have to be filled before a record can be inserted.
  4. Type the value in Value. A line whose Value stays empty is not written, so the table fills it itself.
  5. Choose Insert once the key lines and the fields the table requires are filled.

One line per field, with the record, the number, the caption and the value

What happens

The dialog lists the fields of the table in field-number order, so its lines follow the columns of the grid. A line left empty is not written: the table fills it itself, or refuses the record when it requires a value. The record is inserted only when Insert is chosen, and it is written to the log when the log is on.

Example

The preset 10005, name JD, description Adatum Corporation, opens table 102. A user chooses New, types ITEM-006 in Value on the line whose Field Caption is Code and Alpine Ski House on the line whose Field Caption is Description, leaves the lines the table fills itself empty and chooses Insert. The record is inserted beside the record ITEM-001 the filter selected.

If something goes wrong

What you seeWhyWhat to do
"Enter a value for the key field %1."The line has no key value.Type the key value first.
"A record with the key %1 already exists."The key is in use.Choose another key.
The line disappears when you leave itThe table refused the record, usually for a field it requires.Read the message and fill the field it names.
Insert New Record is not offeredYou may not insert into the table.Ask for insert permission on the table.