Arsip: Firebird tidak Auto Commit

 
user image
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 ??? :?
user image
more 16 years ago

kaka-delphi

Coba di refresh kang ... :D
user image
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
user image
more 16 years ago

kaka-delphi

Yups, bisa di masukkin di AfterPost ... :D
user image
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
user image
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
user image
more 16 years ago

deLogic

kayaknya perintah refresh tidak selamanya berhasil... sepertinya yang paling berhasil adalah menggunakan Close dan Open.
user image
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 refresh
Blom 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/
user image
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
Share to
Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com