Arsip: Konsep ChaceUpdate di ZQuery ZEOS

more 17 years ago
onsir
Mau tanya bagaimana pengaplikasian ZQuery dengan properti Chaceupdates yg di set TRUE
Klw cara biasa yg saya gunakan sperti ini:
TRY
Begin
FMenuUtama.ZKonGlobal.StartTransaction;
proses INSERT/UPDATE/DELETE
FMenuUtama.ZKonGlobal.Commit;
End;
EXCEPT
on E:Exception do
Begin
FMenuUtama.ZKonGlobal.Rollback;
End;
END;
Apakah dengan Chaceupdate seprti ini, tapi konsep ini blm saya coba,
atau ada rekan-rekan yg lebih tahu/lebih baik dalam penerapan konsep chaceupdate.
atas penjelasannya saya ucpakan terima kasih.
TRY
BEGIN
ZQuery1.ApplyUpdates;
// PROSES INSERT/UPDATE/DELETE
ZQUERY1.CommitUpdates;
END;
EXCEPT
on E:Exception do
BEGIN
ZQuery1.CancelUpdates;
End;
END;

more 17 years ago
onsir
tolong dong konsepnya, pemakaian chace update dengan StartTransaction - commit/Rollback.
saya perlu masukan dari rekan-rekan.

more 17 years ago
zieborg
klo aku pake cacheupdate menggunakan BDE, tapi rasanya konsep ZEOS juga sama, yaitu
procedure TForm1.ApplyButtonClick(Sender: TObject);
begin
with CustomerQuery do
begin
Database1.StartTransaction;
try
ApplyUpdates; {try to write the updates to the database};
Database1.Commit; {on success, commit the changes};
except
Database1.Rollback; {on failure, undo the changes};
raise; {raise the exception to prevent a call to CommitUpdates!}
end;
CommitUpdates; {on success, clear the cache}
end;
end;
ini potongan code dari help filenya delphi, tapi aku pernah pake ya emang konsepnya spt ini, apply update dipanggil setelah data manipulation, bukan sebelumnya, sedangkan commitupdates itu untuk membersihkan local cachemore ...
- Pages:
- 1
reply |
Report Obsolete
AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now:
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- Tolongin cara akses ke Folder pake Delphi...pliss..
by arise in Tip n Trik Pemrograman more 17 years ago - Tolong sy Konksikan USB TO Serial RS232 dgn programku
by dedidavidbala in Network, Files, I/O & System more 13 years ago - Simpen Ke Database Pake Query .. Caranya ???
by betamax in MsSQL more 17 years ago - deLogic special post
by deLogic in OOT more 18 years ago - Super Project onDelphi-id
by portege in Kritik & Saran more 18 years ago - Validasi sesuatu yang unique...
by Random in Hal umum tentang Pascal Indonesia more 17 years ago - Cara Cari beberapa kata dalam 1 kalimat
by joudie in Hal umum tentang Pascal Indonesia more 16 years ago - Cari Data di table
by tAtA in Tip n Trik Pemrograman more 17 years ago - programq kok gak jalan di komputer laen??
by shovachevic in Hal umum tentang Pascal Indonesia more 16 years ago - Panduan Belajar delphi yang benar?
by bbrvbd04 in Hal umum tentang Pascal Indonesia more 15 years ago