Arsip: Firebird tidak Auto Commit

more 16 years ago
Manz
Nah, Masters aku mo nanya lagi neh ...
kan aku buat 2 form, yang satu form masterdata, yang satu form input.
Contoh :
form masterdata : untuk masukkin data biodata.
form input : untuk masukkin jam lembur / overtime.
Nah, kasusnya, kan aku dah input biodata sebanyak 10 data nih, tapi pas mau masukkin jam lemburnya, koq data yang biodata gak bisa di lookup ya pake db lookup combo, kosyonq aja gak ada data.
Tapi ...
kalo programnya di close dulu, kemudian di run lagi, baru nonghol datanya.
Untuk Database aku pake IBDatabase, dan Transaction IBTransaction
dengan IBTransaction:
DefaultAction := TACommit
AutoStopAction := saCommit
tapi napa ya data yg aku input gak bisa langsung load ke form input ???
:?

more 16 years ago
Manz
hehehehehe ...
Kang, saya pan make devexpress, rada hese mun direfresh mah ....
Nah, masalahna kumaha mun banyak user yang input dimaster data dan langsung input di form input ???
apa refresh-nya pas appending ???
Bari dicobain ach .. :D

more 16 years ago
Manz
Bro, apa Refresh method itu sama dengan Close <-> Open <-> Close ???
Apa ngak membebani data retriver dari fisik ke virtual ????
IMHO seh ... :D

more 16 years ago
kaka-delphi
Lho .... emang menggunakan method refresh masih kurang ... ?
Secara kasar sich emang agak mirip, karena pada method open akan meminta data yang di request. Klo lebih baik sich menggunkan method refresh

more 16 years ago
deLogic
kayaknya perintah refresh tidak selamanya berhasil... sepertinya yang paling berhasil adalah menggunakan Close dan Open.

more 16 years ago
kaka-delphi
Kekekekkkkkk ........ :D emang bendul juga sich .... contoh kasusnya waktu saya pertama kali menggunakan komponen ADO, pas nge-refresh kok ga muncul2 data yang udah di masukkin.
Klo lebih baik sich menggunkan method refreshBlom selese nich ..... kekekekkkk :lol: lanjutannya : Klo lebih baik sich menggunkan method refresh, klo refresh masih kurang, pake Close - Open ... ;) BTW .... knapa yach method refresh suka ga berhasil di salah satu komponen (misal: ADO) sedangkan di komponen laen suka berhasil (misal: BDE) khan pada sama2 turunan TDataSet .... :-? TANYA KEN APA ? :D http://blog.bprasetio.or.id/2006/09/22/checkdate-problem/

more 16 years ago
Manz
hehehehehe ....
The Refresh method does not work for all TDataSet descendants. In particular, TQuery components do not support the Refresh method if the query is not "live". To refresh a static TQuery, close and reopen the dataset.Trus, kata Bang Delphi juga ...
Note: Most datasets try to maintain the current record position when you call refresh. However, this is not always possible. For example, the current record may have been deleted from the server by another user. Unidirectional datasets have no mechanism for locating the current record after a refresh, and always move back to the first record. Warning: Unidirectional datasets refresh the data by closing and reopening the cursor. This can have unintended side effects if, for example, you have code in the BeforeClose , AfterClose , BeforeOpen , or AfterOpen event handlers.
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 2 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 2 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 3 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 10 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 10 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 10 years ago
Random Topic
- TProgress nggak muncul
by delphicode in Tutorial & Community Project more 13 years ago - Ada yang pernah coba Zeos + SQLite3 + Delphi 2010?
by mambamaestro in Hal umum tentang Pascal Indonesia more 12 years ago - menonaktifkan error message
by BLie2000 in Tip n Trik Pemrograman more 15 years ago - Tanya? Bagaimana cara meyeleksi list di combobox
by maseko in Reporting more 14 years ago - menampilkan indikator/progress pada proses
by shindo in Hal umum tentang Pascal Indonesia more 16 years ago - error ADOCommand1.CommandText
by tAtA in Tip n Trik Pemrograman more 15 years ago - [tanya] meletakkan posisi kursor pada memo
by pribowo26 in Tip n Trik Pemrograman more 13 years ago - form baru
by pits_its in Form Enhancement & Graphical Controls more 16 years ago - Mau Nanya!!
by gusk in Hal umum tentang Pascal Indonesia more 15 years ago - Yang Pingin Source, masuk sini....
by eksant in OOT more 16 years ago