
|
If you were logged in you would be able to see more operations.
|
|
|
Flex SDK
Created: 02/22/08 08:27 AM
Updated: 05/15/09 01:53 AM
|
|
| Component/s: |
mx: List
|
|
Security Level:
|
Public
(All JIRA Users
)
|
|
| Severity: |
Enhancement/Task
|
| Reproducibility: |
Every Time
|
| Discoverability: |
Medium
|
| Found in Version: |
SDK Flex 3 (Released)
|
| Milestone: |
SDK Gumbo - Release
|
| Steps to Reproduce: |
Consider a scenario when a list of all possible options come from a dataservice, and a subset of this list is comming on another call that says SelectedItems
If I choose to display this in a List like component with multiple selection turned on, I cannot just pass the subset to selected Items because it will not select them since the subset contains copies of the objects in DataProvider not references to them.
in ListBase around line 6336
if (data == items[i]) .. compares the "pointers" to the objects instead it should compare the UIDs of the objects .. this way a user can implement IUID and have objects with the same properties return the same UID ... this is very useful when working with data from tables.
A quick patch is to replace that line with the next one:
if (itemToUID(data) == itemToUID(items[i]) ) - not the optimal way but does the trick
Consider a scenario when a list of all possible options come from a dataservice, and a subset of this list is comming on another call that says SelectedItems
If I choose to display this in a List like component with multiple selection turned on, I cannot just pass the subset to selected Items because it will not select them since the subset contains copies of the objects in DataProvider not references to them.
in ListBase around line 6336
if (data == items[i]) .. compares the "pointers" to the objects instead it should compare the UIDs of the objects .. this way a user can implement IUID and have objects with the same properties return the same UID ... this is very useful when working with data from tables.
A quick patch is to replace that line with the next one:
if (itemToUID(data) == itemToUID(items[i]) ) - not the optimal way but does the trick
|
| Language Found: |
English
|
| Bugbase Id: |
none
|
| Triaged: |
Yes
|
| Regression: |
No
|
| QA Owner: |
Ella Mitelman
|
| Resolved by: |
Alex Harui
|
| Fixed Version: |
SDK Flex 3.4.0
- Next Build
|
| Confirmed Version: |
SDK Flex 3.4.0
- Next Build
|
| Participants: |
Alex Harui, Benoit Moraillon, Ella Mitelman, Geoff Hichborn, Jim Cheng, Lauren Park and Radu Cocieru
|
|
Consider a scenario when a list of all possible options come from a dataservice, and a subset of this list is comming on another call that says SelectedItems
If I choose to display this in a List like component with multiple selection turned on, I cannot just pass the subset to selected Items because it will not select them since the subset contains copies of the objects in DataProvider not references to them.
in ListBase around line 6336
if (data == items[i]) .. compares the "pointers" to the objects instead it should compare the UIDs of the objects .. this way a user can implement IUID and have objects with the same properties return the same UID ... this is very useful when working with data from tables.
A quick patch is to replace that line with the next one:
if (itemToUID(data) == itemToUID(items[i]) ) - not the optimal way but does the trick
|
|
Description
|
Consider a scenario when a list of all possible options come from a dataservice, and a subset of this list is comming on another call that says SelectedItems
If I choose to display this in a List like component with multiple selection turned on, I cannot just pass the subset to selected Items because it will not select them since the subset contains copies of the objects in DataProvider not references to them.
in ListBase around line 6336
if (data == items[i]) .. compares the "pointers" to the objects instead it should compare the UIDs of the objects .. this way a user can implement IUID and have objects with the same properties return the same UID ... this is very useful when working with data from tables.
A quick patch is to replace that line with the next one:
if (itemToUID(data) == itemToUID(items[i]) ) - not the optimal way but does the trick
|
Show » |
|
All
|
Comments
|
|
Sort Order:
|
|