Subject | Re: [IBO] Queries running asyncronous? |
---|---|
Author | Helen Borrie |
Post date | 2005-05-20T01:14:08Z |
At 12:05 AM 20/05/2005 +0200, you wrote:
the state of the dataset, e..g from dssBrowse to dssEdit? You say that
users are hitting buttons...if these are large or complex queries, it
sounds as though you need to hook button behaviour to the button state of
your TIB_UpdateBar. (If you are not using one, try adding one to your form
and, if you like, setting its Visible property false.)
need. However, you still need to take care of "rogue buttons", to make
sure their OnClick event is not available at inappropriate times.
Helen
>I'm observing that some queries are running approx. 1 second onIt's also quite slow.
>my system, when my program changes the params.
>That's fine.
>But if the user is hitting buttons to start automatic data manipulationBy "automatic data manipulation" do you mean calling methods that change
>very fast after a query refresh started, it's failing as the query doesn't
>seem to be ready.
the state of the dataset, e..g from dssBrowse to dssEdit? You say that
users are hitting buttons...if these are large or complex queries, it
sounds as though you need to hook button behaviour to the button state of
your TIB_UpdateBar. (If you are not using one, try adding one to your form
and, if you like, setting its Visible property false.)
>Is my observation correct, that it might indeed take a short time untilLook at the Fetching property of TIB_Dataset.
>the datasoure is feeding the TIB_Edits. Windows is already
>processing messages for other objects on that form, that might
>collide with their data modifiations on the not finished query.
>
>1.) if there a property to determine: query done and row(s) fetch is
>completed?
>2. ) If there a property to set the query to sync. mode (so theTIB_Datasource.DisableInterface ...EnableInterface might be what you
>query.refresh is blocking the application until row(s) fetching is
>done?
need. However, you still need to take care of "rogue buttons", to make
sure their OnClick event is not available at inappropriate times.
Helen