on 06-06-2008 4:23 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ya I am aware of onenter action but is there any other solution for this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.