Subject | RE: [IBO] Search mode question |
---|---|
Author | Jason Wharton |
Post date | 2006-01-21T03:06:21Z |
> Where should I be looking to stop all my open queries going intoYou are probably running into a problem typical of using data modules with
> search mode together? I have an MDI app that puts new forms into
> search mode when they are created. All the forms descend from
> TfrmBase (IBF_Base.pas), none of the datasources announce their focus
> and each form has it's own search bar etc. What I mean is that I am
> working in one form and then load another and both go into
> search mode.
>
> I wondered if I needed to use a different transaction for each form
> but the MDI app in the ibo samples only has the one transaction and it
> doesn't do this. Any ideas?
forms that you have multiple instances of. I don't think its all datasets
going into search mode but your controls are all pointing to the same
dataset.
My rule of thumb is if you are going to have multiple instances of a form
then keep the data access components on the form itself instead of on a
datamodule. There are many people who have little tricks to keep their data
module instances coordinated with their form instances and I suspect you
either need to do that or get rid of them.
Jason