Skip to Content
1
Former Member
Aug 11, 2016 at 03:40 PM

Personas 3.0: pick up arbitrary lines selection from a very long table with scrolling

269 Views

Hi Personas 3.0 experts,

This looks like a simple issue - but the general solution is not simple, why I am looking for a better answer.

Problem:

On UI there is a table with many rows, say 12 rows, but the screen can only display 3 max rows. To view all rows user has to scroll the table.

Action:

User needs to select multiple rows at any places (user can scroll the table if needed). A button is used to show all the selected row index (which should be the absolute index of the table).

Say, user can select rows of absolution index 2,11

Issue:

One a given screen, the absolute index=(value of tbl.selectedRows) + tbl.firstVisibleRow;

But tbl.selectedrRows returnx a STRING of relative index, say, "1;3" which must be parsed into a number array [1,3]. These are numbers of relative index depending on the offset, tbl.firstVisibleRow which has a changing value while user scrolling.

The problem is that this changing offset is not saved anywhere during scroolling. It is impossible to calculate the absolute index afterwards. I am just feeling that it should not be so complicated for such simple usecase.

Maybe there is a better way of doing this, anyone knows? Thanks!

Dong Zhu