|
F1 도움말에 나온 원문입니다.
참고하세욥...
: 이경우 Reconcile Aciton에는 skip, cancel, correct, refresh, merge
: 가 있어 correct를 선택하면 두번째 업데이트한 내용으로
: 다시 레코드가 변경되는 것이 아닌가요.
[답] -----------------------------------------------------------
[raCorrect]
- 이벤트 핸들러에서 레코드값을 현재 업데이트된 레코드로 바꾼다.
----------------------------------------------------------------
나머지는 번역해서 보세욥.
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
[TReconcileAction type]
- Indicates how a client dataset should handle a record whose update generated an error.
*Unit
- Dbclient
enum TReconcileAction { raSkip, raAbort, raMerge, raCorrect, raCancel, raRefresh };
*Description
TReconcileAction is the type of the return parameter in a client dataset's OnReconcileError event handler.
It indicates the action to take when the OnReconcileError handler exits.
The following table lists the possible values and what they indicate:
------------------------------------------------------------------------------------------
Value Meaning
------------------------------------------------------------------------------------------
[raSkip]
- Skip updating the record that raised the error condition, and leave the unapplied changes in the change log.
[raAbort]
- Abort the entire reconcile operation.
[raMerge]
- Merge the updated record with the record on the server.
[raCorrect]
- Replace the current updated record with the value of the record in the event handler.
[raCancel]
- Back out all changes for this record, reverting to the original field values.
[raRefresh Back]
- out all changes for this record, replacing it with the current values from the server.
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
하안인 님이 쓰신 글 :
: 빌더5의 File->New->Dialogs->ReconcileError Dialog 가 있는데요.
: 이 다이알로그는 두명의 사용자가 어떤 한 테이블에 동시에 접근하고
: 두사람 모두 동일한 레코드를 변경하고자 할때
: 먼저 업데이트한 사람은 성공하고 두번째 업데이트한 사람에게는
: 경고 메시지를 보내는 걸로 알고 있습니다.
:
: 이경우 Reconcile Aciton에는 skip, cancel, correct, refresh, merge
: 가 있어 correct를 선택하면 두번째 업데이트한 내용으로
: 다시 레코드가 변경되는 것이 아닌가요.
:
: 예제에서 Reconcile Dialog가 떠 있는것은
: Modifed Value, Confilectiog Valuse, Original Value
: 세가지있어 선택되도록 되는데
: 제경우에는 Modified value와 Original value만이 다이알로그에 표시됩니다.
:
: 그리고 Correct를 선택하여도 두번째 수정한 사람의 값이 저장되는 것이
: 아니라 첫번째 저장한 값이 저장되고요.
:
: 원인이 무엇인지 여러날을 헤메도 답을 못찾고 있습니다.
: 도움을 구합니다. 참고로 빌더5에서 프로그램하고 있습니다.
|