I have a very odd problem, related to some other unanswered posts here. An application has a popup window called on click that is using data from a custom event. The popup has a datagrid. The "get all data" for the grid is coming from a simple data management component, called inside the popup - lets say an AC allData. The data manager inside the popup brocasts an event saying "done loading" and I'm handling that event in the popup to select selectedItems based on the data passed from the main application.
The selectedItems data is definitely available to the popup. It is an AC of myValueObject. The "get all data" is definitely there and showing in the grid. Its also an AC of myValueObject. In the above scenario, it doesn't work when I say DG.selectedItems = selectedData as Array. Instead, I have another function "getSelection (selectedData)" which basically loops through the selectedData AC and pushes each item to a new Array. I've triple checked this, and it also does not work. As a test, to make sure its not realted to the "loading" process of the popup, I've even set the "getSelection" to run via a button click well after everything is in the popup. It selects nothing. BUT! If I say DG.selectedData = getSelection(allData), where allData is the same thing used to populate the grid's dataProvider, it selects all items in the grid. What's totally odd, is the AC from the dataProvider and the AC for selectedData look absolutely *identical* in the debugger, minus a bunch of items for the selectedData, as it should be. The only working alternative I can find is to create another function in the data manager that "re gets" the selectedData. This is not doable, because other areas of the application might change the selectedData, without calling to the database. I need to keep moving that data around to components freely without calling him. Any thoughts on what's wrong here?

