Hello Ricardo,
I have a pointer for your question, please investigate it further how
far it helps you and let me know how that goes.
In the EODatabaseChannel class we have two methods isFetchInProgress
() and cancelFetch()
If your GUI has a Cancel Fetch button then, clicking on that should
stop fetching i.e., invoke cancelFetch() in this action method, else
programatically you can set some timer that checks for every few
milliseconds isFetchInProgress() and if the query is still in
progress after a configured max time to fetch, you can invoke
cancelFetch() that interrupts fetch.
Thanks & Rgds,
Shravan Kumar.M
"Let us learn from the past to profit by the present,and from the
present to live better in the future."
--William WordsWorth
---------------------------------------------------------------
From: Ricardo Parada <[EMAIL PROTECTED]>
Date: 16 May 2007 2:04:20 AM GMT+05:30
To: WebObjects-Dev Mailing List <[email protected]>
Subject: Interrupting a fetch that is taking too long
Hi All,
Let's say I have a GUI that lets users build queries to be used for a
report. Then another process generates a report by applying this
user defined query. However, if the query takes too long I would
like to interrupt the query and then flag query for special handling.
Has anybody figured out a way to interrupt a fetch in EOF?
Thanks,
Ricardo J. Parada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]