error "not in cached updates mode"

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

error "not in cached updates mode"

Post by albourgz » Fri 16 Dec 2016 08:26

Hi,
using c++ builder xe10 seattle. Connected to oracle 12.

TUniQuery *q;
TUniDataSource
TDBCtrlGrid.
q->CachedUpdates=false;
q->Open();
q->ApplyUpdates();
=> EDatabaseError Exception: not in cached update mode.

Why why why?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: error "not in cached updates mode"

Post by MaximG » Fri 16 Dec 2016 14:13

According to our documentation the ApplyUpdates method is used to write dataset pending cached updates to a database : https://www.devart.com/unidac/docs/?dev ... ates().htm Note that dataset must be in the cached updates mode. This mode is defined by the СachedUpdates parameter : https://www.devart.com/unidac/docs/?dev ... pdates.htm .

Post Reply