Solved

Where is the data stored until ApplyUpdates is called

Posted on 2011-02-14
6
684 Views
Last Modified: 2013-11-23
I need to read data that has been posted to a table before ApplyUpdates is called.  Using Delphi 3 and Guptas SQLBase database.  When the data is posted, the records are not visible in the table until ApplyUpdates is called.  
Does anyone know where the cached records are stored?

Thanks!

0
Comment
Question by:TheMatrixDuck
  • 3
  • 3
6 Comments
 
LVL 32

Expert Comment

by:ewangoya
ID: 34888445

To check if records have changed
Dataset.ChangeCount > 0

To get a fields new value
Dataset.FieldByName('yourfiled').Newvalue    

To get the fields old value
Dataset.FieldByName('yourfiled').OldValue
0
 

Author Comment

by:TheMatrixDuck
ID: 34888780
Thanks for  your answer.  I have tried Dataset.Recordcount after inserting 3 records.  The count always returns 0.
0
 
LVL 32

Expert Comment

by:ewangoya
ID: 34888837

What components are you using for your datasets

ADO or BDE.

Note unidirectional datasets will not return the RecordCount nor will they allow you to use First, or Prior
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:TheMatrixDuck
ID: 34889400
sqlDirect data access components (TSqlQuery).
0
 
LVL 32

Accepted Solution

by:
ewangoya earned 500 total points
ID: 34908767

Sorry I'm not familiar with sqlDirect components, but the principle should be the same

If you are adding data directly to the dataset, there is no reason the data should not be displayed as you type it in otherwise how do you know what you are typing in.
Unless you are adding data to a temporary dataset or object and a different function adds the records to the dataset before calling ApplyUpdates

I would very much like to see the code for this if you can post it here
0
 

Author Closing Comment

by:TheMatrixDuck
ID: 34910092
I did not clarify my question accurately enough.  I was attempting to access the records from a dll where the recoredset is not visible.

If I had worded the question correctly, I'm sure I would have received a more contextually accurate answer.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

813 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

14 Experts available now in Live!

Get 1:1 Help Now