General information
Category:
Coding, syntax & commands
Title:
Revert a insert in a many side table.
Hi all,
In a form I have 2 tables in data env. (cursors optimistic buffered at table level (5)) cursors are in relation as one to many (table "workers" and table "workdays" as 5 recs with fields day and hour they start and end to work.
When insert work is request I append blank record in table "workers", replace the primay key with appropriate value and insert 5 records in table "workdays" with default values (INSERT INTO Workers ...). If user want to leave without save data click undo cmd that contain a TABLEREVERT(.T.). This revert only data in the main table "workers" leaving the 5 inserted records in table "workdays". Why tablerevert doesn't revert all tables ?
T.I.A.
Dino.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only