on 04-12-2007 4:31 AM
Hi everyone, is it possible to show total calculation in footer of table in webdynpro ? For the calculation, I think i can handle it because many thread in forum and weblog discuss it but for show it in footer of table , i can't find.
Display
A | B | C | D |
... | ... | ... | ... |
... | ... | ... | ... |
... | ... | ... | ... |
| ____Total | XX | --> XX shows total calculation for column D
If this is not possible, how to trick it ? Thank you
null
Hi,
Even i had the same requirement once, but as this is not possible i.e displaying the total as the footeer of the table.
the other option for this is to hav a seperate table below the main table & then displaying the total in that table.
You can collect the value of each cell of column D in an integer variable at the time of displaying the data in the table.
A | B | C | D |
... | ... | ... | 1 |
... | ... | ... | 2 |
... | ... | ... | 3 |
for(int i = 0;i<node.lenght();i++)
int tot = wdcontext.element
now at the end you can create the element of the node & assign this variable "tot" to that element, then add teh element to the node
Hope it helps you.
Regards
Jeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi jeet, you give me one picture but the problem is how to hide header column of the second table and make it glued with first table ? Thank you
First Table
A | B | C |
| Total| | --> second table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Since the total is not editable, i suggest you for a textview.
Add a text view to your view and position it below the table.
Once you get the total, assign it to the textview context attribute.
I hope this helps you.
Thanks
Shriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satria,
I dont think its possible in footer of a table.
But you can have a UI element in the header.
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.