Skip to content

Submitting the changes and resolving problems#

The changes of a form are saved in the database when you click Submit changes. The submission carries all the pending changes of the form and its details at once, and it is applied in full or not at all: that way a master is never left saved without its details, nor half of a correction.

Submit the changes#

  1. Review what is pending if you want: the Pending filter on the toolbar shows only the records with changes.
  2. Click Submit changes (n) in the document header. The number is that of pending changes; without changes, the button is disabled.
  3. Wait until the status line no longer says “Working…”.

If all goes well:

  • The status line says “Changes saved: 2 insert(s), 3 update(s) and 1 deletion(s).”.
  • The form is read again, so that you see the data as it is left in the database, and stays on the record it was on. A new record is chosen again with the key the database has given it.

Empowerment Center first saves the inserts and updates of the masters and then those of the details. Deletions go the other way round: first the details and then the masters.

One submission: all or nothing Order in which the changes of a submission are applied, in a single transaction: additions and changes to the master, additions and changes to the details, deletions of the details and deletions of the master; if everything goes well it is committed and, if there is a problem, everything is undone. One submission: all or nothing All good A problem Additions and changes to the master Clientes Additions and changes to the details Facturas, Líneas Deletions of the details Deletions of the master it is committed everything is undone and the records are marked The key the database generates for a new master is passed on to its details
One submission: all or nothing Order in which the changes of a submission are applied, in a single transaction: additions and changes to the master, additions and changes to the details, deletions of the details and deletions of the master; if everything goes well it is committed and, if there is a problem, everything is undone. One submission: all or nothing All good A problem Additions and changes to the master Clientes Additions and changes to the details Facturas, Líneas Deletions of the details Deletions of the master it is committed everything is undone and the records are marked The key the database generates for a new master is passed on to its details
One submission: all or nothing View full size View full size

When the submission finds problems#

If a single change cannot be saved, none is saved. The status line says “Nothing has been saved: n record(s) with problems. Resolve them and submit again.”. Your changes stay pending in the browser; nothing is lost.

The validation rules of the fields are checked before submitting anything: if any is not met, the status line says “Nothing has been submitted: n record(s) do not meet the rules of their fields. Fix them and submit again.”.

ECenter checks all the changes before canceling the submission, so it shows you all the problems at once. Each record with a problem:

  • carries the warning triangle in the status column;
  • shows, when you choose it, a warning above the grid with the problem and its actions.

To go from one to another, choose the With problems filter.

A record with the warning “Another user has changed it” and the buttons to resolve itA record with the warning “Another user has changed it” and the buttons to resolve it
A record with the warning “Another user has changed it” and the buttons to resolve it

The problems and how to resolve them#

Problem What happened How to resolve it
Another user has changed it Since you read the record, someone else changed one of the fields you are changing (or, if you are deleting it, any of its fields). Choose an action of the warning (below) and submit again.
They no longer exist Someone else deleted the record, or it is no longer within your universes. Discard my changes.
Violates an integrity rule The database rejects it: a duplicate key, a value that has to exist in another table, an empty required field. The warning adds the database message. Correct the value (for example, another key) or discard the change.
Invalid value A value cannot be saved in its column: it is not of the type or does not fit, or it does not meet the validation rules of its field. The warning adds the reason, and the cell that does not meet them has a red border (in the columns view, the reason goes below the field). Correct the value.
It would fall outside your universes With the change, the record would no longer be in the data you can see (for example, a sales representative of the North who moves a customer to the South). Correct the value or discard the change. If the change is correct, ask someone who has that universe.
Database error Another database error, with its message. If it begins with “The value history could not be recorded”, the history table does not accept the record. Depending on the message. If you do not understand it, tell the administrator.

A record another user has changed#

When the problem is “Another user has changed it”, the record already shows the values it now has in the database, and the warning offers three actions:

Action What it does
Use the current values Keeps what is now in the database, in all the fields. Your change is lost.
Keep my changes Keeps your values in the fields you changed and takes the current ones in the others. When you submit again, your values are written over those of the other user.
Discard my changes Returns the record to how it was read.

After resolving all the problems, click Submit changes again.

Tip

“Keep my changes” does not touch the fields you did not change: if another user corrected the phone number and you the email, both changes stay.

When it is not known whether they were saved#

If the connection is cut while submitting, the browser does not receive the response and cannot know whether the changes were saved. The status line says so: “It is not known whether the changes were saved (…). Press “Refresh” to check before submitting them again: if they were already saved, they would be repeated.”.

Click Refresh and check the records before submitting again. This matters above all with inserts: submitting them twice would give duplicate records.

If the changes were saved but the form could not be read again, the status line says “The changes have been saved (…), but the form could not be read again: … Press “Refresh” to see it as it is.”. The changes no longer appear as pending, so they would not be submitted twice.

Changes made while submitting#

You can keep editing while the changes are submitted. What you change during the submission is not considered submitted: it stays pending and the form is not read again, so as not to lose it. The status line warns you: “Changes saved: … The changes made while saving are still pending (n): the form has not been read again so as not to lose them.”. Submit them when you finish.

Leaving or reading again with pending changes#

ECenter asks before losing unsubmitted changes:

When Question To lose nothing
You leave the form (to another document, to another page) “Leave without submitting the form changes?” Keep editing
You click Refresh “Refresh the form?” Cancel
You change the fields or the details “Change the form without submitting the changes?” Keep editing
Someone processes the workbook or the segmentation (Process workbook, Process segmentation) “Load the processed form without submitting the changes?” Keep editing: you continue with what you had.
You close or reload the tab, or close the browser The browser's own question (its text is set by the browser) Stay on the page

If you leave the form open for a long time without using it, its read on the server expires. You do not have to do anything: when you submit, open a detail or insert, ECenter processes the form again and repeats the action, without losing your pending changes.

See also#