Solved

Problem with DisableControls...

Posted on 1998-09-02
2
148 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Run video youtube webbrowse 10 65
How to debug For loops? 3 57
Delphi...Split view - idea? 1 90
Delphi Firemonkey: if the Sms contain special characters it won't send it 3 45
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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