cancel
Showing results for 
Search instead for 
Did you mean: 

Sum of Table column contents into a last row with respect to column

devendervb
Contributor
0 Kudos

In a WebDynpro for java application,

Need to sum up all the table with respect to column, at the last Row of the table with respect to column.

  • Only one table should be present for contents as well for the total.

Please help me.

Edited by: devender vadithyabadabath on Jan 12, 2008 11:54 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
devendervb
Contributor
0 Kudos

Thanks,

It help me in one sense, Here I need total in last row.

eg:

Table

C1

10 R1

20 R2

30 R3

40 R4

Need total here in R5(in a same table).

Former Member
0 Kudos

Hi,

you must add e last element at the end of you Nodeelements.

I<yourNode>Node node1 = wdContext.node<;yourNode>;

I<yourNode>Element element = node1.create<;yourNode>element.;

-


Iterate over the your node element to build your sum of each and than add this sum to the last row of your table.

-


element.set<;yourAttribute>(sum);

node1.addElement(element);

I hope this helps

regards

Gunter

Former Member
0 Kudos

Thanks a lot this help me.

would like to award for this and would like to closed this as answered.

Help me again.

sid_sunny
Contributor
0 Kudos

Hi Devender,

You can also use this blog to solve your problem:

[Blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3596] [original link is broken] [original link is broken] [original link is broken];

Regards

Sid

devendervb
Contributor
0 Kudos

Chauhan,

I need Total in a same table row, not out side

Answers (0)