Solved

Problem with DisableControls...

Posted on 1998-09-02
2
144 Views
Last Modified: 2010-04-04
Hi!

I have two tables (tblScale and tblScaleCapacity). tblScaleCapacity has tblScale as it's master, connected through two fields. This works fine, tblScaleCapacity is updated if I change record in tblScale, BUT tblScaleCapacity is not updated when I've issued a tblScale.DisableControls call before I move the record-pointer.

Is there anyway I can override this? I want tblScaleCapacity to follow tblScale even if the controls are disabled...

//Daniel
(using Delphi2 and W95)
0
Comment
Question by:Dippen
2 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1338449
That is the expected behaviour of Master/Detail relationship. If you call DisableControls, the detail will become out of sync with the master.
0
 
LVL 4

Accepted Solution

by:
binkzz earned 50 total points
ID: 1338450
Change the tblScale OnChange procedure to call or make a TblScaleCapacity update.

Make the update so that if it still doesn't update properly, that the procedure enables the control, changes the data, and then disables the controls again. This should happen within a tenth of a second, and therefore the data shan't be in danger ;)

Hope this helps,

Binkzz
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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

919 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

16 Experts available now in Live!

Get 1:1 Help Now