cancel
Showing results for 
Search instead for 
Did you mean: 

How to go to next field in tablerow by press Enter

former_member186148
Active Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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