cancel
Showing results for 
Search instead for 
Did you mean: 

Summary row in tableview (including sorting and BYPAGE navigation)

0 Kudos

Hello everybody,

I already found a few topics dealing with this problem but I wasn't able to find a real solution for this.

So far I'm pretty familiar with table iterators but I have no idea how to handle the summary row to be the last line in a table, even if sorting and navigation by page is allowed in the tableview.

I think you definitely have to add this summary row in your internal table, since you can not add a virtual row in your tableview. And you can custom render this row or respectively each cell for instance with a different color but how to force this row always to appear as the last row in every tableview page (navigation=BYPAGE).

Does anyone have a solution for that?

Thanx

Oliver

Accepted Solutions (1)

Accepted Solutions (1)

maximilian_schaufler
Active Contributor
0 Kudos

Ok, here is what I came up with (hoping I got your problem right):

In your tableview you are displaying <b>x</b> rows, and after these rows you want your sum row to be displayed.

I have done quite some things with iterators, but why not do without one here

Altering the internal table can do as well:

Try to insert a new row after every <b>x</b> rows into your internal table which holds the needed sum values, and then change your tableview to display <b>x+1</b> rows.

In you case you need to do some operations with your internal table (to avoid the sum rows messing up the results) you should somehow "mark" these sum rows so you can distinguish them later on.

Hope this is helpful for your problem.

Max

Answers (2)

Answers (2)

0 Kudos

Thanks a lot for your solutions,

I will try it this way and give you a feedback...

Regards

Oliver

former_member181879
Active Contributor
0 Kudos

I think you have understood the problem space and the solution space very well. Unfortunately, you are correct that one additional line must be available in the table to trigger the calling of the iterator. And then you custom render the sum cells. (You can set a nice background colour for these cells.)