Subject Re: [IBO] Creating a Thread to prepare/open datasets
Author Jason Wharton
> I have a couple of screens that either prepare or open several queries
> before displaying a screen (ie: Invoice Entry).
>
> The first screen is simply a list of invoices the user has entered. The
> second screen is where the user enters all the info for the invoice.
>
> I have choosen to prepare/open several on this first display as it makes
the
> subsequent forms open very quickly.
>
> What I am wanting to do is quicken up the display of the first screen, so:
>
> Can I create a thread to open up the "other" queries (queries not required
> to display the invoice list)?
>
> If so, how would I go about doing this?

I would advise against doing this. Each thread should have its own distinct
connection to the database so this defeats that purpose some. I recommend
that you use the OnIdle and figure out a way to do them as non-intrusively
as possible that way. You might consider looking at the TIB_Process
component class to build this on top of.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com