Skip to Content
0
Former Member
Feb 23, 2009 at 03:16 PM

Flash Island "Children DataSources"

23 Views

Hi all, I've been looking over the documentation for binding the data sources and properties in the FlashIsland's context nodes with The flex object, all of them show a simple scenario of one data source and few properties, but never shows the case of Children DataSources. I've had to use this case but I came across the following issue.

The issue simply is Iu2019ve been accessing the DataSources defined in my FlashViewu2019s Context using the Bindable variables on my FlashIsland at the flex side, and whenever I need to get the ChildDataSource of it, I would use the actual name of that ChildDataSource thatu2019s defined in the COMPONENTCONTROLLERu2019s Contextu2026 I figured that this is not a good practice for reusability!

Just to make sure Iu2019m clear this is a small example

for each(var item:Object in _myFlashIsland.Box)

{

var boxData:ArrayCollection = item[[BOX_DATA]];

}

Where myFlashIsland.Box is the Bindable DataSource variable, and u201CBOXDATAu201D is the name of the ChildDataSource of Box.

Would there be a way I can get the name of u201CBOX_DATAu201D generically or use the u201Cnameu201D property in my FlashIsland view at the SAP side the same way I used it for Box, so whoever is using the component wonu2019t have to strict their context to have this naming?

Thank you in advance, and have a wonderful day.