cancel
Showing results for 
Search instead for 
Did you mean: 

Update table scroll

Former Member
0 Kudos

Hi!

I have two views in the first one I select a intem from a list, depending on the selection I go to the secon view and show a table with some items.

If I scroll down in the second view, return to the first view and go again to the second one (repopulated), then the scroll keeps the position unchanged (if it has enough lines)

How can I set the scroll position?

Note: I have already written setLead(1) but it doesn't update the scroll, only the selected row.

Thanks a lot!!

Accepted Solutions (1)

Accepted Solutions (1)

former_member205363
Contributor
0 Kudos

Hi,

I have done table scrolling in different fashion, If you want you can try like this.

I took an integer context Value attribute, set to firstVisibleRow.

I took TriggerTimer, After every triggering (25 seconds) I increase the value.

firstVisibleRow +=15;

15 is the visibleRowCount.

Regards,

Lakshmi Prasad.

Former Member
0 Kudos

Well, yeah, that's the attribute I was looking for, but the usage is a lot easier, I coded some sutff different but it worked!!

Thanks a lot for the info!

former_member205363
Contributor
0 Kudos

Hi,

Thank you for your points....

Regards,

Lakshmi Prasad.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Alejandro,

Where have coded the statement .setLead(1) ?

You should be adding this statement in the onPlugFrom<First_View>() method. This method gets called every time there is anavigation from First View to your second view.

If you have done it in the wdDoInit() method, then it will be called only one while initialization of thesecond view.

Best Regards,

Alka.