on 04-16-2010 11:04 AM
Hello SDN!
I have a table with editable fields. Let's imagine that cursor is in field "A" in current row. User enter some data to current field and want cursor go to the next editable field in row by press Enter key. How to do it? Is it possible?
P.S. i'm working with NW 7.0
regards, Lev
Assign an action to the "onEnter" event of the input field for column "A" and implement the action handler as
void onActionEnterPressedInFieldA(..., I<TableDataSourceNode>Element row)
{
wdThis.wdGetAPI().requestFocus(row, wdContext.node<TableDataSource>().getNodeInfo().getAttribute(I<TableDataSourceNode>Element.ATTRIBUTE_B));
}
Use event parameter mapping "nodeElement" -> "row" to pass the node element representing the table row to the action handler.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lev,
If you want to go to next field you have to press enter and if you want to do some action on 2nd field associated with some event in field one there are two events associated with input box that is on enter and on change you can trigger that.
If you want any more help please elaborate the scenario a little more.
Regards
Jeetendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.