cancel
Showing results for 
Search instead for 
Did you mean: 

Input field onfocus event

Former Member
0 Kudos

Hi ,

I am trying to get sum of rows as soon as I enter table rows at runtime.

I am able to get the sum on click of button ,but I want to get the sum as soon as I enter value for at runtime.

Is it possible.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Web Dynpro doesnt support low events like onFocus etc.

Best solution in Web Dynpro is by using calculated attribute for total. Create context Attribute "Total" of type "string", "ReadOnly" : true; and "calculated":true. It will automatically creates one method something like getTotal() for you. In that method write code to loop over the table and and return the sum as String.

Sometime you may not see updated value until next server round trip. I agree, this is not a foolproof way. But that is best you can do.

Cheers,

~kranthi

Former Member
0 Kudos

Ya I am aware of onenter action but is there any other solution for this

Former Member
0 Kudos

The best you can achieve ist to update the sum using the InputField.onEnter event which is triggered by pressing the "Enter" key inside the input field.

Armin