cancel
Showing results for 
Search instead for 
Did you mean: 

Table, selection and cursor

Former Member
0 Kudos

Hi,

I have a Table with few columns and InputFields like celleditors.

I select one row with one mouse-click and then move cursor with keyboard arrows to another row. I would like to get selected that row in which cursor is placed by pressing enter.

How I could do that?

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I've tried this sentence:

wdContext.nodeMaterialesTabla().setLeadSelection(wdContext.nodeMaterialesTabla().currentMaterialesTablaElement().index());

and it doesn't work.

What do you mean with the other possible solutions?

Former Member
0 Kudos

If I understand your question correctly, you want to select a row when you press ENTER inside an input field of that row?

This can be done by

- assigning an action to the InputField.onEnter event

- mapping event parameter "nodeElement" to an action parameter "row" of type IWDNodeElement

- in the action handler, call row.node().setLeadSelection(row.index())

Armin