Solved

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

Posted on 2008-10-23
2
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

734 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