|
|
|
|
|
- Modification conflict and status of the record
<Source>.ErrorStatusModification (Function) In french: <Source>.ErreurEtatModification
Not available with this kind of connection
Returns the status of a record during a modification conflict.
// Code of a procedure called to process a modification conflict FileName is Data Source = HErrorInfo(hErrFile) // Displays the status of the source record Trace(FileName.ErrorStatusModification(hRecRead)) // Displays the status of the item for the file record Trace(FileName.ErrorStatusModification(hRecFile)) // Displays the status of the item for the user record Trace(FileName.ErrorStatusModification(hRecUser))
Syntax
<Result> = <Source>.ErrorStatusModification(<Record to process>)
<Result>: Integer constant Displays the status of the record. | | hStateActive | The record is active | hStateCrossed | The record is crossed | hStateDel | The record is deleted | hStateInvalid | Record status not found (error) |
<Source>: Type corresponding to the specified source Name of data file used. <Record to process>: Integer constant. Used to specify the record in which the value of the item must be read. | | hRecFile | Status of the record in the data file. | hRecRead | Status of the source record (read before running <Source>.Modify). | hRecUser | Status of the current record during the call to <Source>.Modify. |
Remarks Modification conflict and status of the record When using an application in network, conflicts may occur because of conflicting data entered by the different users. For example: 1. The user X edits the form for the "California" state. 2. The user Y edits the form for the "California" state. 3. The user X renames the state to "California_01". 4. The user Y modifies the name of the state and saves it. A modification conflict occurs during this backup. A conflict of modification status occurs when the form is deleted by the user X for example. The different cases are presented in the table below: | | | | Record read | Addition | Crossed | Deleted | Record on disk | Addition | Modification conflict | Modification conflict | Modification conflict | Crossed | Modification status conflict | Modification conflict | Modification conflict | Deleted | Modification status conflict | Modification status conflict | XXXX |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|