on 09-08-2008 9:36 AM
Hi
I have a table in the standard application (sap.com/mss~ecm).In which i have a table with some columns one fo the column is avg value which has 6 values i need total avg value for that column of these 6 values at RUNTIME .
Can you please tel me how to do this from webdynpro for java (NWDS).
Thanks
Kishore.
k
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore,
Try this Code.
int sum = 0,avg = 0;
for(int i=0;i<wdContext.node<Your Node Name>.size();i++)
{
sum = sum + wdContext.node<Your Node Name>().get<Your Node Name>ElementAt(i).get<Value>();
}
avg = sum/wdContext.node<Your Node Name>.size();
With Regards,
Roop Kumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.