Edit Extended / Edit WorkArea - ABM / ABM2

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: recordlocking

Post by t57042 »

My problem is not that I do not understand the different locking methods.
I want the EDIT EXTENDED to work with 'prelocking' - but I don' t know how to adapt the code.

Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: recordlocking

Post by esgici »

Hi Richard

Something like this does will help you ?
Screen shoot for Edit Extended with pre-lock
Screen shoot for Edit Extended with pre-lock
EdRExtRLockFail.PNG (24.77 KiB) Viewed 4445 times
EditRExtCB19.zip
Source files for Edit Extended with pre-lock
(37.99 KiB) Downloaded 293 times
Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: recordlocking

Post by t57042 »

Hi Esgici,

Very nice job, I just had the time for a quick first look... some rermarks:

1. When a user Cancels or OK a record that is edited the record should be immediatly UNLOCKED (I think it stays locked until other record is selected)

2. When a user intends to add a NEW record (append blank) other users get (sometimes) RECORD LOCKED. Other users must do another append blank and lock that one.
The way it works now, only one user can enter new data.

3. When deleting a record I sometimes get: "record locked by another user" (something left from original code?)

4.. The text could be: Record is locked by another user; please try again.

Best regards
Richard
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: recordlocking

Post by t57042 »

t57042 wrote:Hi Esgici,

Very nice job, I just had the time for a quick first look... some rermarks:

1. When a user Cancels or OK a record that is edited the record should be immediatly UNLOCKED (I think it stays locked until other record is selected)

2. When a user intends to add a NEW record (append blank) other users get (sometimes) RECORD LOCKED. Other users must do another append blank and lock that one.
The way it works now, only one user can enter new data.

3. When deleting a record I sometimes get: "record locked by another user" (something left from original code?)

4.. The text could be: Record is locked by another user; please try again.

Best regards
Richard
I had a little more time and figured finally out how the .CH system works.
I already corrected points 1 and 4.
I get back when have more.

regards

Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: recordlocking

Post by esgici »

t57042 wrote: I had a little more time and figured finally out how the .CH system works.
Good news :)
I already corrected points 1 and 4.
I get back when have more.
OK, I'll wait.

Regards
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: recordlocking

Post by t57042 »

Hello,

Included is zip file containing changes for Prelock of records in multuser network:

1. When opening dbf check is made to see if file is not exlusively in use by someone else.
2. When adding, deleting and editing a record it is locked before action
and unlocked when saving (or cancel) the action.

regards

Richard
Attachments
edit_ex.zip
(37.08 KiB) Downloaded 311 times
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: recordlocking

Post by esgici »

Good :)

Thanks to share.

Regards
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Edit Extended

Post by t57042 »

The language selection doesn't seem to work here.
I tried to set it with HB_LANGSELECT in the sourcecode and with the 'language select' option in the menu.
Always get english.

How does it work?
Where is the sourcefile with the differnet language texts?

Richard
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: edit (R)extended

Post by t57042 »

With version 3.0.28 it works - with version 3.0.48 it doesn't?
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: edit (R)extended

Post by esgici »

t57042 wrote:With version 3.0.28 it works - with version 3.0.48 it doesn't?
It's just time of jump to UT8 ;)

Regards
Viva INTERNATIONAL HMG :D
Post Reply