on 11-14-2006 4:57 AM
Hi SDN,
I have developed an webdynpro application using Adaptive RFC Model.I have used the Table UI Element to display a report and got the output successfully. But now my intension is to display the TOTAL VALUE of the cells, at the bottom of the selected column.
Can anyone suggest me how to proceed.
Thanks in Advance.
Regards
Basha
Hi Basha,
If you are using NWDS7.0, we have FixedBottomCell, where you can keep Sum of the
columns values.
Table ->Right Click -> Add Column Variant -> Right Click -> FixedBottomCell.
Programatically, add value to the cell depend on your logic.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
First of all you cannot bind your UI element to two Datasource.
So either you create two UI element as Lolitha suggested or Make Value node and have value attributes ,with extra field as Total.Bind the Value Node to the UI element.
Give this code
AddTotal()
{
for(i=0;i<ValueNode.size;i++)
{
int att1 =wdContext.nodeValue.getelementAt(i).getAtt1;
int att2 =wdContext.nodeValue.getelementAt(i).getAtt2;
int total = att1+att2;
wdContext.ValueNode.getElementAt(i).setTotal(total);
}
for(int i=0;i<BapiNode.size;i++)
{
Bapitable.set(wdContxet.Valuenode.getAtt();
Bapitable.set(wdContxet.Valuenode.getTotal();
}
BapiList.add(Bapitable);
execute your Bapi
Regards
Nidhideep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basha,
Are you using NW04s or NW04?
The options differ depending on version...
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think your getting total value getting from the RFC then
U can create two tables one for displaying table and second for total of every column.
And needs to setting the properties for adding these two tables.
Map the total values of the column to the second table.
this might helps you.
Thanks,
Lohi.
Message was edited by:
Lohitha M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Basha,
Use calculated attributes.
/people/valery.silaev/blog/2005/11/29/800format-your-way
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.