On Friday 29 December 2006 13:26, Ed Leafe wrote: > On Dec 29, 2006, at 3:35 PM, johnf wrote: > > A couple of questions came up during one of my promoting of Dabo > > sessions. > > > > In VFP you create a cursor make changes to the cursor and then > > rollback some > > of the changes by using Tablerevert(.f.). Does Dabo do this > > currently? > > We don't use TABLEREVERT(.F.) to revert a row; instead, we use cancel > (). The equivalent to TABLEREVERT(.T.) is cancelAll(). > > > With a Dabo cursor is there oldval() and curval() ? > > The equivalent to OLDVAL() is kept in a memento object for each row. > We don't have a way to access that from the bizobj because there has > never been a use case for it. It is used internally to figure out > just what has changed in a record, in order to create the appropriate > SQL Update command. > > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com > > > > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Thanks Ed but I have an add on question. Memento is used to check the local dataset (data cursor) but what are we doing to check the SQL data on the back end? ie. If a user is about to update the database and someone has changed the backend data. What happens? Some of the SQL engines will return a record status as dirty. Thanks -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
