cancel
Showing results for 
Search instead for 
Did you mean: 

tableView: Instead of "Page 1 of 6" show "Element 1-10 of 36"

daniel_humberg
Contributor
0 Kudos

Is it possible to change the default behaviour of the paginator of a tableView?

By default, it shows "Page x of Y", but I would like to change it to "Element x-z of Y".

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

it is possible to get "Line x of Y", Line x is the first visible row in the table.

use navigationMode = "BYLINE"

like this one.

<htmlb:tableView id = "tasks"

table = "<%= tab_searchresults %>"

iterator = "<%= tasktable_iterator %>"

emptyTableText = "Keine Aufgaben selektiert"

sort = "APPLICATION"

onHeaderClick = "sorttab_searchresults"

selectionMode = "NONE"

visibleRowCount = "20"

navigationMode = "BYLINE"

width = "100%" >

i hope this helps

daniel_humberg
Contributor
0 Kudos

but if I use BYLINE, the user can only navigate line by line. I still would like to navigate page by page, I only would like to change the texts...

Former Member
0 Kudos

As far as i know you can't change the text in the tableview navigation row, but

another idea would be:

turn the navigation of the table view off and build a row navigation for your own with a <xhtmlb:toolbar> right under the tableview.

That's the way I would try.

Former Member
0 Kudos

Hi Daniel

Earlier we worked on similar problem related to paginator.

You can check out this thread...in this we are able to retrive the value of paginator at runtime in a string.

It can be possible that we can similarly change the value of paginator..provided it takes a string value...

throue SET_FORM_FIELD....

I am not very sure...So just check it out.....

Cheers:)

Mithlesh

athavanraja
Active Contributor
0 Kudos

you can achieve this with <xhtmlb:pager

check out the sample application.

SBSPEXT_XHTMLB/pagerX.bsp

Regards

Raja

daniel_humberg
Contributor
0 Kudos

Can I use the xhhtmlb:pager INSTEAD OF the standard pager that come with the tableView?

athavanraja
Active Contributor
0 Kudos

yes . check out the sample application i have mentioned in the previous thread

sbspext_xhtmlb/pagerx.bsp

Regards

Raja

Answers (0)