[stackoverflow] [progress Openedge Abl] Progress Openedge How To Prevent Someone From...

Status
Not open for further replies.
I

Ivan

Guest
I need an alternative way to prevent someone from accessing a particular piece of code.

I'll explain the scenario.

There are two programs.

In the first program an end-user creates a proforma invoice. When he/she then views the details on the invoice. The code displays the details with the main table's record in EXCLUSIVE-LOCK. This is to prevent other end-users from changing anything while the first user is busy viewing the details. So even when the proforma invoice is completed and can no longer be changed. The main table's record is still in EXCLUSIVE-LOCK. which is wrong, but it prevents other users from messing with it while the first user is still busy updating it. However, the people who work in this program leave the program in the detail view. They don't go out.

The problem is when the second program is used to dispatch the items on the proforma invoice. It uses the same main table's record. And therefore can't do anything because the first program still has it in EXCLUSIVE-LOCK.

My question is...

How can I prevent users changing data in the first program as if the main table's record was in EXCLUSIVE-LOCK, but without actually having it in exclusive-lock? Over multiple sessions...

Continue reading...
 
Status
Not open for further replies.
Top