Optimistic Locking

You can set optimistic locking in the workstation jde.ini file. This type of database locking prevents a user from updating a record that changed since the user has inquired about it. If the record has changed, the user must select the record again and then make the change. This feature is available for business functions, table I/O, and Named Event Rules.

For example, assume that two users are working in the Address Book application The following table illustrates the optimistic locking process:

Time

Action

10:00

User A selects Address Book record 1001 to inspect it.

10:05

User B selects Address Book record 1001 to inspect it.

Both users now have Address Book record 1001 open.

10:10

User B updates a field in Address Book record 1001 and clicks OK.

JD Edwards EnterpriseOne updates Address Book record 1001 with the information entered by User B.

10:15

User A updates a field in Address Book record 1001 and clicks OK.

JD Edwards EnterpriseOne does not update Address Book record 1001, and the system displays a message informing User A that the record has changed during the time that User A was viewing it. For User A to change the record, User A must re-select it and then update it.

When the system detects that a record change has occurred, it displays a message indicating that the record has been changed since it was retrieved.