cancel
Showing results for 
Search instead for 
Did you mean: 

Scrolling on row/col in tableview

Former Member
0 Kudos

Hello,

How can i scroll in a tableview'' cell automatically.

This cell is not on the first page.

I try some : document.getElementById('ID_BB_50_2').focus();

but is not working.

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

<i>you mean the user clicks a link (a cell) in the third page of your tableview and it opens the page in the same browser window. and from the opened page if the user clicks back button (browser back ) it goes to the first page of the tableview?

</i>

Yes you anderstand.

- My application is stateless

- When my user click in a cell's link that opens a popup window.

- When he closes this window (with a button or 'X' corner), i refresh the main window and in the tableview he is on page 1.

If you have a solution...

Best regards

athavanraja
Active Contributor
0 Kudos

<i>When he closes this window (with a button or 'X' corner), i refresh the main window</i>

is it necessary , are you passing some data back from the pop up window to the main page?

if you refresh the main page it will automatically go to the first page. if you want to retain the same page (in tableview) if set a variable for the tableview's <b>visibleFirstRow</b> attribute

<htmlb:tableView

......

visibleFirstRow = "<%= vfrvar %>"

suppose the visiblerowcount attribute is 5 (5 rows per page in tableview) then the first row for page three is 11 which you have to pass to vfrvar while refreshing the main page.

Hope this is clear.

Regards

Raja

Answers (4)

Answers (4)

Former Member
0 Kudos

I answered a little quickly.

If i use visibleFirstRow = 11 ( for the page = 3) it's ok, i go back on my row, but i can't go to page = 1.

The previous pages are not accesible.

T.Chiret

null

athavanraja
Active Contributor
0 Kudos

you have to keep setting the visibleFirstRow based on what user clicked in the footer navigation, you can handle it with onNavigate

Raja

Former Member
0 Kudos

Thanks,

That is the situation :

My user returns from the popup on the good row (with visibleFirstRow = x)

But when it uses the mouse's wheel or the keyboard pageUp it cannot go up any more.

onNavigate ?

I never use this, it_s on server or client side ?

Do you have an example ?

T.Chiret

Former Member
0 Kudos

It's great.

Thank you

Former Member
0 Kudos

Yes of course,

The user is on a huge tableview with a lot of rows, he scrolls of 3 pages for example and click on a cell's link. When he comes back the tableview is on page = 1, row = 1 and col = 1 and my user is lost.

Well, if you understand my poor english...

Thanks

raja_thangamani
Active Contributor
0 Kudos

After coming back to Page 1,what do you mean you " my user is lost"? You mean data is lost?

Raja T

athavanraja
Active Contributor
0 Kudos

you mean the user clicks a link (a cell) in the third page of your tableview and it opens the page in the same browser window. and from the opened page if the user clicks back button (browser back ) it goes to the first page of the tableview?

if my understanding right?

1. is your application stateful or stateless?

2. can you redesign so that clicking the link opens the page in a new window?

3. from the opened application, do you go back by clicking browser back button or some custom back button?

Raja

Former Member
0 Kudos

Nobody has an idea ?

Thanks

athavanraja
Active Contributor
0 Kudos

can you explain a bit more on what you want to do