Subject Re: [IBO] Deactivate MasterSource
Author Paul Vinkenoog
Hello Guido,

> IBO has the feature, that when I do a IncSearch on a Master-dataset,
> it disables all Detail-Datasets and when the record is found, it
> enables them. I have a situation, that I need to disable the
> Detail-Dataset, as well. So when I scroll in the Master-Dataset, the
> detail-dataset should not be refreshed. Can anybody tell me, how to
> do this ?

You can call MasterDataset.DisableControls or MasterSource.DisableControls.
The name is a bit misleading: it doesn't really disable (grey out) the
controls, but it prevents update notifications from being sent to the
datasource. So the controls, but also detail datasets, are kept from
updating.

(If you only want to "disable" the controls but detail sets still to
be updated, use DataSource.DisableInterface)

DisableControls increments the freeze level everytime it is called, so
if you call it more than once, make sure you later call EnableControls
the same number of times. Same for Disable/EnableInterface.


Greetings,
Paul Vinkenoog