wow, that's what i wanted...

Thx, Matt.


-- Keishichi


--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> <mx:Repeater id="rp_1"
> dataProvider="{mx.utils.ArrayUtil.toArray(dataObject.daysch)}" />
> 
>  
> 
> Matt
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of keishichi2001
> Sent: Thursday, November 17, 2005 11:06 PM
> To: [email protected]
> Subject: [flexcoders] iterate mx:Model data in CellRenderer
> 
>  
> 
> i'm trying to display mx:Model data in CellRenderer(within TileList).
> The mx:Model has following format.
> 
> <mx:Model id="monthdata">
>   <obj>
>     <item>
>       <date>1</date>
>       <day>0</day>
>       <daysch>
>         <title>Sales MTG</title>
>         <title>Presentation</title>
>       </daysch>
>     </item>
>     <item>
>       <date>2</date>
>       <day>1</day>
>       <daysch>
>         <title>something to do</title>
>       </daysch>
>     </item>
>   </obj>
> </mx:Model>
> 
> <daysch> element may have multiple nested elements.
> Above data will be passed into dataProvider of TileList.
> 
> <mx:TileList columnCount="7" rowCount="6" borderStyle="none"
> dataProvider="{monthdata.obj.item}" listItemRenderer="adayCellRenderer">
> 
> Then, the CellRenderer should be able to get item data by itself.
> 
> 1: <mx:Link label="{dataObject.date}"/>
> 2: <mx:VBox >
> 3:   <mx:Repeater id="rp_1" dataProvider="{dataObject.daysch}">
> 4:     <mx:Link label="{rp_1.currentItem.title}"/>
> 5:   </mx:Repeater>
> 6: </mx:VBox>
> 
> I've confirmed that line1({dataObject.date}) has no problem, it works
> as i expected.
> However, line3-5 doesn't work.
> When I run this application, i got following error dialog.
> 
> TypeError: Error #1034: Type Coersion failed: cannot convert
> mx.utils::[EMAIL PROTECTED] to mx.collections.ArrayCollection
>       at mx.binding::Binding/execute()
>       at mx.binding::Binding/watcherFired()
>       at mx.binding::Watcher/notifyListeners()
>       at mx.binding::PropertyWatcher/handleEvent()
>       at flash.events::EventDispatcher/dispatchEvent()
>       at mx.core::Container/set dataObject()
>       at mx.controls.listclasses::TileBase/calculateHeight()
>       at mx.controls.listclasses::ListBase/measure()
>       at mx.core::UIComponent/UIComponent$480$private::measureSizes()
>       at mx.core::UIComponent/validateSize()
>       at mx.managers::LayoutManager/validateSize()
>       at
> mx.managers::LayoutManager/LayoutManager$1689$private::doPhasedInstantia
> tion()
>       at
> mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher2()
>       at
> mx.core::UIComponent/UIComponent$480$private::callLaterDispatcher()
> 
> 
> I hope someone correct me...
> 
> 
> Best Regards,
> Keishichi
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>  
> 
> Computer software development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>  
> 
> Software design and development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>  
> 
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>  
> 
> Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&;
> w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>  
> 
>  
> 
>  
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
> ________________________________
>









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to