How to make the Enter key act as the Tab key in PB 11 .NET Web Forms application?

Dear All,

I am using PowerBuilder 11 build 6525 to develop a .NET Web Forms 
application.  I would like to make the Enter key behave like the Tab key for 
our end users to input data (in DataWindow and EditMask controls) inside 
this application.

I have found that in JavaScript, something like the following code can 
achieve what we want:

 if (event.keyCode==13) {event.keyCode=9; return event.keyCode;}

N.B.
Enter key has the keyCode 13 while Tab key has the keyCode 9.

However, it seems that all the key press related events (such as 
"pbm_dwnprocessenter" and "pbm_keydown") are NOT supported in PB .Net Web 
Forms.
So is there any way to trigger the JavaScript from the PB .NET Web Forms 
application whenever the user presses any key?

Or is there any other possible way to achieve our goal?

Any pointer or information is much appreciated.  Thank you very much in 
advance.

Thanks and Best Regards,
Jessica


0
Jessica
6/26/2009 1:44:43 AM
sybase.net.webform 1327 articles. 0 followers. Follow

1 Replies
2136 Views

Similar Articles

[PageSpeed] 29
Get it on Google Play
Get it on Apple App Store

Hello Jessica,

Have you solved this.

If so, could you please let us know how.

Thanks
Eric

Jessica Au wrote:
> Dear All,
> 
> I am using PowerBuilder 11 build 6525 to develop a .NET Web Forms 
> application.  I would like to make the Enter key behave like the Tab key for 
> our end users to input data (in DataWindow and EditMask controls) inside 
> this application.
> 
> I have found that in JavaScript, something like the following code can 
> achieve what we want:
> 
>  if (event.keyCode==13) {event.keyCode=9; return event.keyCode;}
> 
> N.B.
> Enter key has the keyCode 13 while Tab key has the keyCode 9.
> 
> However, it seems that all the key press related events (such as 
> "pbm_dwnprocessenter" and "pbm_keydown") are NOT supported in PB .Net Web 
> Forms.
> So is there any way to trigger the JavaScript from the PB .NET Web Forms 
> application whenever the user presses any key?
> 
> Or is there any other possible way to achieve our goal?
> 
> Any pointer or information is much appreciated.  Thank you very much in 
> advance.
> 
> Thanks and Best Regards,
> Jessica
> 
> 
0
ontsnapt
11/3/2009 12:52:22 PM
Reply:

Similar Artilces:

how to make enter key act like tab key for webform apps
Hi, we want to act in a webform app on enter key like it would be the tab key how can we do this ? M TIA Heino Hellmers You would need to do this with Javascript. I did a web search and found a link that shows how to make the browser trap and ignore the enter key. Presumably you could modify it to do a SetItem to the next column in the DataWindow. http://www.felgall.com/jstip43.htm Regards, Dave Fish Sybase On 21 Apr 2007 13:49:37 -0700, "Heino Hellmers" <heino@hellmers.com> wrote: >Hi, > >we want to act in a webform app on enter ...

How to make Enter key act like Tab key in gridview.
I need to be able to make tthe Enter key act like a tab key in a gridview. I have found a function code that is supposed to be put in the Head section but I don't have a head section, I am using master pages so I don't know where to place it to make it work. Here is the function I think will do what I want: onkeydown="javascript:if(event.charCode==13){event.charCode=9;}; How do I implement this? Thanks for any help. Hi,you can get the answer at the following link its the same :http://forums.asp.net/t/1411320.aspx Always "Mark as Answer" the Post That Solves th...

Problem consuming PB 11 .NET web service from PB 11 WebForm
Okay, great! What I am trying to accomplish is to consume a .NET webservice created with PB 11 from a WebForm target created in PB 11. First off, the only way I could find to generate the web service proxy is to create a new PB Application target, then generate the proxy into a library that is part of the library search path for the WebForm target. When I tried to generate directly into the WebForm target the option is greyed out on the Project page. I imported the appropriate file to get the soapconnection and soapexception objects into my webform target and everything in webfo...

Enter Key actes as Tab Key
Hi, everyone; I think you all know this code : Send (Handle(this), 256, 9, Long(0,0)) return 1; will allow Enter Key act as Tab Key. This code worked well until now. I have a data. It has few fields, one of which is char(254). So I made it 3 times height than normal field to display all the data. In this case, when I press Tab key, it stopped on that field; when I press Enter key, it just jump over this field to the next one right way. If I reduce the height of that field to normal, Enter key just works like Tab key. This user who will use this application is piggy. ...

Make Enter Key As TAB Key
Hi, I would like to disable the Enter Key. If the user press the EnterKey I would like it to behave like a TAB key. Any example code would be helpful Thanks EJ Please refrain from crossposting. See response in your other post to general /ck "EJ Chew" <admin@cyberoffice.com.sg> wrote in message news:E2WxaltXBHA.64@forums.sybase.com... > Hi, > > I would like to disable the Enter Key. If the user press the EnterKey I > would like it to behave like a TAB key. > > Any example code would be helpful > > Thanks > &g...

Converting .net desktop application(vb.net app) to .net web application(asp.net app)
is it possible to convert/upgrad .net desktop application(vb.net application) to .net web application(asp.net application) ? If possible how? is there any extra software or wrapper for it? If possible please...Thanks..  There is no conversion software or wrappers that I know of. For the most part, you will have to rewrite it since the platforms are completely different.Cheers,       Kevin JonesMy Blog...

How to make Enter key act like Ctrl+Enter Key in data window
Hi, I want to make Enter Key should act like Ctrl+Enter Key funtionality in datawindow. I also need the viceversa functionality. please any one help me regarding this. The pbm_dwnprocessenter event is your friend. See http://www.sybase.com/detail?id=44003 for an example and provide whatever code you require. "ksvimal" <rush2vimal@gmail.com> wrote in message news:1179324264.657453.24500@y80g2000hsf.googlegroups.com... > Hi, > I want to make Enter Key should act like Ctrl+Enter Key funtionality > in datawindow. > I also need the viceversa functiona...

Enter Key acting like a Tab Key
On my web form I am trying to make it so the user can either press Enter or Tab to move to the next textbox. After doing some research there are articles and forum messages that specify how this needs to be done. For some reason it is not working correctly for me. <%@ Page Language="VB" Debug="true" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Windows.Forms" %> <script runat="server"> sub Page_Load(Sender as Object, e as EventArgs) 'Init page end sub Protected Over...

Enter Key acting like Tab Key
Researched this and found that others have gotten this to work successfully. I tried it and can't even get it to compile. My code is as follows: <%@ Page Language="VB" Debug="true" %> <script runat="server"> sub Page_Load(Sender as Object, e as EventArgs) 'Init page end sub Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs) If e.KeyCode = Keys.Enter Then e.Handled = True Me.ProcessTabKey(Not e.Shift) Else e.Handled = False MyBase.OnKeyUp(e) End If...

Make the Arrow keys act as TAB key
What is the syntax to disable the up/down arrows and make the left/right arrow keys act as Tabs? Here is how to make the Enter key act as a tab..... First, define a user event to correspond with the pbm_dwnprocessenter event on a datawindow. Then in that event : Send(Handle(this),256,9,Long(0,0)) RETURN 1 ...

ENTER key as TAB key: PB crashes
Hi everyone, To make the ENTER key acts as TAB key, I did the following, using the Windows SDK: 1. Create a user define event in the dw control mapped to the PB event pbm_dwnkey 2. In this event, I put the following code: -------------------------------------------------------------------------- Long w_handle uint WM_KEYDOWN = 256 int w_tab_key = 9 If KeyDown(KeyEnter!) then w_handle = Handle(This) MessageBox("The Handle","Handle = " + String(w_handle), Information!) Send(w_handle,WM_KEYDOWN,w_tab_key,0) end if ------------------------...

Pressing Enter key should trigger JavaScript validation of one particular button's click event before form submit in ASP.NET using VB.NET?
Hi friends, I'm a entry level s/w engineer working in a leading financial s/w company based in India. Coming to the point, I'm working on ASP.NET using VB.NET in VS.NET 2003(.NET framework 1.1) I have a aspx search screen with few fields to accept input for search criteria. This page contains 2 aspx image buttons, namely a 'Search' button and other image button 'Setup' is used for page redirection(using response.redirect("") or server.transfer("") options. On clicking the Search button, it displays any matching search criteria in a DataGrid with-in a panel which in turn have 3 aspx image...

make enter key act as tab
Is it possible to make the enter key act as the tab key in Intraweb. I am using the TMS web components and some of them have a property I can set which causes the enter key to act as the tab key. But the native Intraweb components do not have this property. Is there a way using javascript to make the enter key work as the tab key in the native Intraweb components. I am using a TIWDBComboBox field and would like the enter key to advance the cursor from this field to the next field. If this is possible using javascript, could someone please show me how. I do not know javascript but I k...

make enter key act as tab
Is it possible to make the enter key act as the tab key in Intraweb. I am using the TMS web components and some of them have a property I can set which causes the enter key to act as the tab key. But the native Intraweb components do not have this property. Is there a way using javascript to make the enter key work as the tab key in the native Intraweb components. I am using a TIWDBComboBox field and would like the enter key to advance the cursor from this field to the next field. If this is possible using javascript, could someone please show me how. I do not know javascript but I k...

Web resources about - How to make the Enter key act as the Tab key in PB 11 .NET Web Forms application? - sybase.net.webform

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Pre-Christmas job application rush hits Australian public service
Speed required for pre-Christmas job window opening for public servants. Check out who is hiring.

Second visa application 'likely' to be approved
The family of a terminally ill Pakistani student can 'hopefully come to Australia sooner rather than later' says Immigration Minister Peter Dutton. ...

Cloud application adoption increases 71 percent in 2015
The adoption of cloud applications is soaring, up by 71 percent in the last year according to the results of a new survey. The latest Cloud ...

Tashfeen Malik's visa application under scrutiny - Business Insider Deutschland
The US government has released the visa application for Tashfeen Malik, who along with her husband killed 14 people in an attack in San Bernardino, ...

MBA: Mortgage Applications Increase in Latest MBA Weekly Survey, Purchase Applications up 37% YoY
From the MBA: Refinance, Purchase Applications Both Up in Latest MBA Weekly Survey Mortgage applications increased 7.3 percent from one week ...

Lawmaker: Immigration Officials Didn’t Fully Vet Tashfeen Malik’s Visa Application
"It’s unacceptable that U.S. Citizenship and Immigration Services did not fully vet Malik’s application and instead sloppily approved her visa," ...

German-Based Spirea Promotes Decentralized PV Applications In Uruguay
... Its technical operations specialist, Laurie Lawrence, pointed out that Uruguay [&hellip German-Based Spirea Promotes Decentralized PV Applications ...

Visa application of San Bernardino shooter released
CNN Visa application of San Bernardino shooter released CNN (CNN) The visa application of one of the San Bernardino shooters was released ...

NTU research team discovers optoelectronic application for molybdenum disulfide
A research team under the National Taiwan University (NTU) has discovered an optoelectronic application for molybdenum disulfide (MoS2), a 2-dimensional ...

Resources last updated: 12/29/2015 3:58:08 AM