Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » how to Stop functing ENTER key when report is processing
icon12.gif  how to Stop functing ENTER key when report is processing [message #704248] Thu, 28 July 2011 08:18 Go to next message
vijay kumar is currently offline vijay kumar
Messages: 26
Registered: October 2010
Junior Member
Hi,
is there any way to stop user to press any keyboard keys (especially ENTER) when report is executing that is "processing please wait..." message. I have disabled the unused images in Toolbar, having only export report and print option. When report is executing I have pressed enter this is short cut key to call the first element in tool bar. Since export report is there, export window is coming behind the processing please wait message.
Is there any to handle this.
Thank you in advance
Vijay Kumar Bolisetti
Re: how to Stop functing ENTER key when report is processing [message #704348 is a reply to message #704248] Thu, 28 July 2011 10:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

You could maybe use something like:
http://www.mediacollege.com/internet/javascript/form/disable-return.html
Put it in the framesetfragment.jsp.

Jason

On 7/28/2011 8:18 AM, vijay kumar wrote:
> Hi,
> is there any way to stop user to press any keyboard keys (especially
> ENTER) when report is executing that is "processing please wait..."
> message. I have disabled the unused images in Toolbar, having only
> export report and print option. When report is executing I have pressed
> enter this is short cut key to call the first element in tool bar. Since
> export report is there, export window is coming behind the processing
> please wait message.
> Is there any to handle this.
> Thank you in advance
> Vijay Kumar Bolisetti
>
Re: how to Stop functing ENTER key when report is processing [message #704855 is a reply to message #704348] Fri, 29 July 2011 02:19 Go to previous messageGo to next message
vijay kumar is currently offline vijay kumar
Messages: 26
Registered: October 2010
Junior Member
Thank you Jason,

Your suggestion worked for me.i have used alternative code for doing that since it is not functioning properly. I have used following code in FramsetFragemnt.jsp.

ON body <body OnKeyPress="return disableKeyPress(event)"> added this and javascript function is

function disableEnterKey(e)
{
var key;
if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
return (key != 13);
}
.

Thank you for your suggestion.
Vijay Kumar Bolisetti
Re: how to Stop functing ENTER key when report is processing [message #705228 is a reply to message #704855] Fri, 29 July 2011 11:31 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Vijay,

Not sure if you are on Birt-Exchange.org but this would be a great
submission to the dev share.

Jason

On 7/29/2011 2:19 AM, vijay kumar wrote:
> Thank you Jason,
>
> Your suggestion worked for me.i have used alternative code for doing
> that since it is not functioning properly. I have used following code in
> FramsetFragemnt.jsp.
>
> ON body <body OnKeyPress="return disableKeyPress(event)"> added this and
> javascript function is
> function disableEnterKey(e)
> {
> var key; if(window.event)
> key = window.event.keyCode; //IE
> else
> key = e.which; //firefox return (key != 13);
> } .
>
> Thank you for your suggestion.
> Vijay Kumar Bolisetti
>
Previous Topic:Report Viewer Parameter Dialog - resize
Next Topic:Issue with BIRT Viewer
Goto Forum:
  


Current Time: Sat Aug 30 22:36:09 EDT 2014

Powered by FUDForum. Page generated in 0.02114 seconds