Solved

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

Posted on 2008-10-23
2
261 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi with SQL Natvie Client 15 85
Virtualstringtree carsh after invalidate for while 5 86
how to center only a line in richedit? 4 52
Delphi 2 45
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now