[
https://issues.apache.org/jira/browse/PIVOT-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791361#action_12791361
]
Greg Brown commented on PIVOT-363:
----------------------------------
The reason this happens is because selection is preserved based on the selected
indexes, not the selected symbols. If a symbol's index changes between queries
(e.g. when sorting on value and one or more of the stock values change), that
selection state will no longer be valid.
To fix this, we'll need to identify the current index of each selected symbol
after re-applying the sort.
> Stock Tracker Demo: Inconsistent Selection Behavior when Adding New Ticket
> Symbol
> ---------------------------------------------------------------------------------
>
> Key: PIVOT-363
> URL: https://issues.apache.org/jira/browse/PIVOT-363
> Project: Pivot
> Issue Type: Bug
> Components: demos
> Affects Versions: 1.3
> Reporter: Todd Volkert
> Priority: Trivial
> Fix For: 1.4.1
>
>
> Steps to reproduce:
> 1) Run the stock tracker demo
> 2) Select GOOG
> 3) Add SLV
> 4) Add MCO
> 5) Sort by Value
> 6) Select GOOG
> 7) Add FORM
> Expected behavior:
> When you add a new ticker symbol, you expect either (a) the selection to be
> maintained, (b) the new symbol to be selected, or even (c) the selection to
> be lost or reset to the first row. B is probably the best user experience.
> Actual behavior:
> The behavior of which row is selected when you add a new symbol differs as
> you add new symbols in the process above.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.