Where does that data from {days} get populated?
From the server? Do you create drawDay classes from the data on the
server? or just use what the server sends? If the latter, then they
are Objects, and cant be cast. You will need to deserialize them into
you custom class when the data loads.
mike chambers
[EMAIL PROTECTED]
On Jun 27, 2006, at 3:41 PM, Ian Skinner wrote:
> I am receiving this error:
> TypeError: Error #1034: Type Coercion failed: cannot convert
> [EMAIL PROTECTED] to drawDay.
>
> When I run this code:
> <mx:Repeater
> id="dayCells"
> dataProvider="{days}"
> startingIndex="{weekRows.currentItem}"
> count="7">
> <ian:dayFormat2
> drawData="{drawDay(dayCells.currentItem)}"
> test="{dayCells.currentItem.formatedDate}">
> </ian:dayFormat2>
> </mx:Repeater>
>
> How can I figure out what kind of object dayCells.currentItem is
> being returned by the Repeater control? {days} is an
> arrayCollection of drawDay objects, how can I get the Repeater
> currentItem to be an object of the drawDay type?
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 | |
> --------- Binary Soduko
> | | |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2898
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54