Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 2072 - cursor cannot be modified
Message
From
20/09/2003 02:50:28
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
 
 
To
20/09/2003 00:01:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00787471
Message ID:
00830840
Views:
96
The parent table has a readonly grid on page2 of a pageframe - for searcing - and child table is updated in grid - i think this is clasical; the code to append record is of course in methods of form and called from buttons, toolbar or menu
What do you meen with and why cursor can be "dirty"?
Should i put tablebuffer on both parent and child and do "go record recno()" to eliminate that "dirty"?

And for second problem with fox catching first the errors?


>Hi Cristian,
>
>Are you doing in a grid something similar to what I described as "illegal"?
>Have you tried the workaround I suggested? Does it help?
>
>If it doesn't help, please provide a repro code and I will take a look.
>
>Thanks,
>Aleksey.
>
>>Hi,
>>
>>Both errors "Cursor cannot de modified..." and "File is in use by another" is happening to my apps allmost every day on ~7 records from 250. This is an old (since VFP 3.0) problem. In later time I get bad references form users who can't find his recently addeded recs!
>>In addition to this errors i experienced an additional behaviour:
>>-one user append and save an document made of parent and child records
>>-second user append blank records in tables buffers
>>-second user edit this records
>>-second user try to save
>>from now on sometimes the tableupdate() gets the records from second user over records from first user; even on appended records the update trigger is executed instead of insert trigger; i am very shure of this because i added an audit table in wich is recorded every modification of tables by triggers.
>>
>>This problems seems to me strong related and is definitely a BUG.
>>
>>From my observation this is happening to a user that stay longer on appended records (wich is in buffers and can not be saved as you sugest because triggers will fail with wrong data) and meenwhile other user are doing append and save.
>>
>>I tryed over time many workarrounds but with no effect:
>>1. reccount() to refresh header before tableupdate()
>>2. flock() or rlock("0") to stop other doing same time modification - to be sure automatic lock dosent fail - and as an side effect get trigger errors trapped by fox wich is showing his own error message and then by error routine in my code/form -> THIS IS ANOTHER BUG
>>3. save as soon as posibble the parent records to not stay until child records are completed - this reduce the frequency but not eliminate the problem
>>
>>It is hard and annoying to do data input with this errors!
>>
>>Thanks and hope this can be fixed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform