cancel
Showing results for 
Search instead for 
Did you mean: 

Need run time total avg valuee

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

k

Former Member
0 Kudos

Please check the following thread...........

[]

Regards

Deepak

Former Member
0 Kudos

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.