Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Master Detail with cachedupdates
Fri, Feb 5 2010 11:32 AMPermanent Link

"Sorin H"
Hello

I have the following basic program:

2 tables with m/d relation. The master table attached to dbEdit controls and
the details table to a dbgrid.
I open both tables.
Now, if I add a new record to the master table and set the detail table to
beginCachedupdates it's work fine but
if I set the detail table to beginCachedupdates and after that add a new
record to the master table
the first record from the details table appear on the dbgrid.

Why this different behaviour?

Thanks Sorin

Mon, Feb 8 2010 10:26 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Sorin,

<< Now, if I add a new record to the master table and set the detail table
to beginCachedupdates it's work fine but if I set the detail table to
beginCachedupdates and after that add a new record to the master table the
first record from the details table appear on the dbgrid. >>

Once a table is in cached updates mode, it will not change and will stay
static until the cached updates are applied or cancelled.

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Feb 8 2010 10:46 AMPermanent Link

"Sorin H"
"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message>
> Once a table is in cached updates mode, it will not change and will stay
> static until the cached updates are applied or cancelled.

Ok, then why a table in cachedupdate mode show only the first record on the
table
when I append a record to the master table?
There isn't any relation between the new record on the master table and the
first record on the detail table.

Thanks
Sorin

Tue, Feb 9 2010 7:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Sorin,

<< Ok, then why a table in cachedupdate mode show only the first record on
the table when I append a record to the master table? There isn't any
relation between the new record on the master table and the first record on
the detail table. >>

I'm not seeing this behavior here with my cached updates example.  What I
see is that the detail side stays static until the cached updates are
applied or cancelled.

If you can send me an example of what you're seeing, I'll be happy to take a
look and find out what is going on.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image