Solved

How can I write to database directly after I click Save on DBNavigator

Posted on 2008-10-23
2
262 Views
Last Modified: 2013-11-23
I use firebird database engine and IBtable and DBNavigator to access to and edit tables,
but after I click the "Save" button on the DBnavigator nothing is written to database, how can I make the application write to database directly after I click Save on DBNavigator?
0
Comment
Question by:Livingod
2 Comments
 

Accepted Solution

by:
the_good earned 125 total points
ID: 22792299
I assume you have a DBsource and IBtable components between dbnavigator and database Source

since you use  Firebird You need to drop an IBtransaction component from Interbase tab

for the DBnavigator onclick event write this code to push the updated data to physical database  

IBtransaction1.commit;  {this will close the table as default}
//if you are using IBtable add this line too
IBtable1.active:=true;

You can see the database file updated with the new commit  ;-)
0
 

Author Comment

by:Livingod
ID: 22792306
Wow wonderful! Thanks for your help : )
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ddeman not working in activex 3 103
Send message from delphi to whatsapp, is it possible? 3 1,427
Delphi application Soap connection 5 103
find a node in VST 2 68
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question