cancel
Showing results for 
Search instead for 
Did you mean: 

Input Field in table - I need a OnClick Event

Former Member
0 Kudos

Hello everybody,

I have the following problem:

I have created a table in my view which is filled at runtime. The table has 3 different rows and every row has TableSingleMarkableCells, these cells further have a input field as their celleditor.

I now want to know which cell the user is editing. I have a AttributePointer through which I know that at the time the user presses the enter key. But I need to know whether the focus has changed. Because there is the possibility that the user switches between the differnt cells with the arrow key or the tab key. But the AttributePointer only gives me the first selected cell.

Have anybody a suggestion to solve this problem - it seemed to be something like definingb a OnClick event for a input field (additionaly to the default OnEnter event...)

Best regards,

Sebastian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can find out at which row the editing goes, by using

onLeadSelect action of TableUIElement.

in onLeadSelect action you can find row number using this statement

int rownumber= wdContext.node<TableNode>().getLeadSelection();

Regards

LakshmiNarayana

Former Member
0 Kudos

Thanks for the fast response,

but the idea with the leadselection does not work due to the SingleMarkableCells and due to the fact that the user switches between cells (even between rows) without clicking on it, only by using the keyboard functions. In the AttributePointer is still the original input field marked.

Regards, Sebastian

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

SAP Web Dynpro doesnt support onClick and mouse and keyboard events.

Regards

Ayyapparaj