Skip to main content



      Home
Home » Archived » EGL Development Tools » Error Using sysLib.wait(2);
Error Using sysLib.wait(2); [message #1001916] Thu, 17 January 2013 09:53 Go to next message
Eclipse UserFriend
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 11:21 Go to previous messageGo to next message
Eclipse UserFriend
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 11:41 Go to previous messageGo to next message
Eclipse UserFriend
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 09:27 Go to previous messageGo to next message
Eclipse UserFriend
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 10:11 Go to previous message
Eclipse UserFriend
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: Wed Jun 18 08:39:31 EDT 2025

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

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

Back to the top