Skip to content · Zum Inhalt

Update a column

One value can be written into every record of the selection at once: choose the field, give the value, confirm. The whole update runs as one transaction, so a failure leaves every record as it was.

Before you start

  • The field has to be one you may modify, and not part of the primary key.
  • Read the filter first: every record it selected is written.

Write one value into every record

  1. On the grid, choose Update Column.
  2. In Column Operation, type the field in Field No. — the AssistEdit offers the included fields.
  3. Give the new value in Edit Value, in the field's own format.
  4. Confirm the question, which names the field, the value and the number of records.

One value and the action that writes it into every record of the filter

What happens

Every record of the selection gets the value, and the update runs in one transaction: if one record fails, nothing is written and the error is shown. A key field cannot be changed in all records — "A primary key field cannot be updated in all records. Rename it record by record." The message at the end is "Updated %1 records.", and every changed record is written to the log.

Example

The preset 10008, name RS, description Coho Winery, keeps the field filter PROJ-001 and its field list. The user chooses Update Column, picks one of those fields, gives the value, confirms the question, and every record of table 105 the filter selected gets the value.

If something goes wrong

What you seeWhyWhat to do
"A primary key field cannot be updated in all records. Rename it record by record."The chosen field is part of the primary key.Rename the records one by one instead.
"'%1' is not a valid value for field %2."The value does not convert to the field's type.Give the value in the field's own format.
"Field %1 cannot be edited."The field is calculated or one you may not modify.Choose another field.
Nothing is writtenOne record failed, so the whole update was rolled back.Read the error, correct the value, and run it again.