Solved

Where is the data stored until ApplyUpdates is called

Posted on 2011-02-14
6
679 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
Comment Utility

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
Comment Utility
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
Comment Utility

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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:TheMatrixDuck
Comment Utility
sqlDirect data access components (TSqlQuery).
0
 
LVL 32

Accepted Solution

by:
ewangoya earned 500 total points
Comment Utility

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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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