cancel
Showing results for 
Search instead for 
Did you mean: 

How to get TOTAL VALUE of the cells, at the bottom of the selected column.?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

sridhar_k2
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks a lot.

Regards

Basha

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Basha,

Are you using NW04s or NW04?

The options differ depending on version...

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Basha,

Use calculated attributes.

/people/valery.silaev/blog/2005/11/29/800format-your-way

https://wwwn.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bad3e990-0201-0010-3985-fa0936d...

Regards, Anilkumar