Reconnect Process for New Occurrences
No Database Connection
Uniface does the following for all disconnected
occurrences with modification status new
and no connection to the database:
- Uniface searches for the occurrence in the component using the disconnected occurrence Id.
- If the occurrence exists in the component, the reconnect process continues at step 4.
- If the occurrence does not exist in the component, Uniface recreates the occurrence using the same disconnected occurrence Id.
- Field data is copied from the disconnected occurrence.
- Occurrence modification flags are set to New ($occmod=1, $storetype=1).
- Field modification flags are set to Modified ($fieldmod=1).
- The disconnected occurrence is deleted, and the reconnect process continues with the next disconnected occurrence.
With Database Connection
Uniface does the following for all disconnected
occurrences with modification status new
and a connection to the database:
- Uniface searches for the occurrence in the component using the disconnected occurrence Id.
- If the occurrence exists in the component, the reconnect process continues at step 4.
- If the occurrence does not exist in the component, Uniface recreates the occurrence using the same disconnected occurrence Id. Uniface does not search for the occurrence in the database.
- Field data is copied from the disconnected occurrence.
- Occurrence modification flags are set to New
(
$occmod=1
,$storetype=1
). - Field modification flags are set to Modified
(
$fieldmod=1
). - The disconnected occurrence is deleted, and the reconnect process continues with the next disconnected occurrence.
Note: After the reconnect process, key validation should be used to check for duplicate keys in the database.