on 05-19-2005 8:00 AM
Hi NG,
how do I craete an Event when 'Enter' is pressed.
In Deatail:
In my App there is a button. I want to fire the action 'onAction' not only by clicking that button but also when 'Enter' is pressed.
Kind Regrads
Stefan
This is also going to be a serious issue for me. I NEED to be able to use the enter key in my Web Dynpro development. The user is used to using the enter key as it works in their existing Webgui Workplace programs. Is it really such an issue to use the enter key in a Web Dynpro development ?
Does anyone have any more information as to whether this is possible in NW2004 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Krish is right. In order to implement this functionality
you would need at first to use setfocus() for the button and then handle the onenter() action.
But neither of the two is possible in this "powerfull" framework.
regards, Ulli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since NW04s there is a property "defaultButtonId" on every UI element container.
/**
Returns the value of the <code>defaultButtonId</code> property.
The initial value is <code>""</code>.
*
Optional ID of a button (which must belong to the same view) which is used as a default button for this container. Whenever the focus is within this container and pressing ENTER would trigger the default button, that button is highlighted somehow to indicate this.
Note: pure layouting containers ignore their default button setting.
*
@return the current value of the defaultButtonId property
@see #setDefaultButtonId(String)
*/
public String getDefaultButtonId();
Armin
As far as i know u cannot create customized events.
No There is no enter event attached to button
u cannot create that
Sorry for the reply
yes what i said was corect that u cannot create onEnter Action for the button but the onAction or onEnter performs same for the button.
u can try onEnter by pressing tab key and having focus on the button
With Wishes
Krishna Kanth
Message was edited by: krish kanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.