Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » Error Using sysLib.wait(2);
Error Using sysLib.wait(2); [message #1001916] Thu, 17 January 2013 14:53 Go to next message
Gregory Testa is currently offline Gregory TestaFriend
Messages: 28
Registered: April 2012
Junior Member
I'd like to use dojo dialong with a pause function, but the syslib.wait function is throwing an error.

My command is:

sysLib.wait(2);

And the error message is:
[CRRUI1083E] An error occurred while the click browser event was being handled.
NOIMPL

This is part of a button on_click event "stream".

Thanks,
Gregory
Re: Error Using sysLib.wait(2); [message #1001970 is a reply to message #1001916] Thu, 17 January 2013 16:21 Go to previous messageGo to next message
Brian Svihovec is currently offline Brian SvihovecFriend
Messages: 55
Registered: July 2009
Member
Using sleep is not recommended in a browser, since it will block the one and only thread and result in an unresponsive UI. You should be able to accomplish what you want using a Job and its 'schedule' function - http://pic.dhe.ibm.com/infocenter/rbdhelp/v8r5m0/index.jsp?topic=/com.ibm.egl.lr.doc/topics/regl_ui_richui_job_scheduler.html

-Brian
Re: Error Using sysLib.wait(2); [message #1001981 is a reply to message #1001970] Thu, 17 January 2013 16:41 Go to previous messageGo to next message
Gregory Testa is currently offline Gregory TestaFriend
Messages: 28
Registered: April 2012
Junior Member
Hi Brian --
I'm trying it now.
Having trouble resolving the import in the EDT workspace....trying import org.eclipse.edt.javascript.Job;
Re: Error Using sysLib.wait(2); [message #1002412 is a reply to message #1001981] Fri, 18 January 2013 14:27 Go to previous messageGo to next message
Richard Moulton is currently offline Richard MoultonFriend
Messages: 92
Registered: August 2011
Location: Devon, UK
Member
Hi Gregory,

I've used the job scheduler before and I've not experienced the error you're receiving, the following code segments show how I've used this.


//First, declare the job scheduler part
refreshQuotes Job{ runFunction=getQuotes };

//Within my onConstruction function set the frequency (in milliseconds)
refreshQuotes.repeat( 60 * 1000 );

// My getQuotes function, with no parms
function getQuotes()
...
end



And that's pretty much it, every 60 seconds my getQuotes function is executed.

I've got a sample application that uses this technique on my website if you're still running into problems. You can download the project from the site.

http://www.richardmoulton.co.uk/portfolio/PortfolioSample.html

Richard
Re: Error Using sysLib.wait(2); [message #1004627 is a reply to message #1002412] Wed, 23 January 2013 15:11 Go to previous message
Gregory Testa is currently offline Gregory TestaFriend
Messages: 28
Registered: April 2012
Junior Member
Thanks, guys. Worked like a champ. Just what I needed. fyi..I didn't need the import statement, EDT just recognized the Job syntax without it.
Previous Topic:@JSONName annotation
Next Topic:Connection profile issue in 0.8.2
Goto Forum:
  


Current Time: Thu Oct 03 14:16:16 GMT 2024

Powered by FUDForum. Page generated in 0.03548 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top