Ok, I have a custom control created to handle the formatting inside each of my
gridItem. I want to pass the day object that is the current item of the
Repeater into this custom control. How do I define the variable in side my
custom control to accept on object of type "Day" defined in a Day.as file?
That is what the repeater current item will pass in if it is looping over an
array of Day objects correct?
<mx:Repeater
id="dayCells"
dataProvider="{testStuff}"
startingIndex="{weekRows.currentItem}"
count="7">
<mx:GridItem width="14%">
<ns1:dayFormat2 dayData="{dayCells.currentItem}" />
</mx:GridItem>
</mx:Repeater>
Ian Skinner wrote:
> <mx:Grid>
> <mx:Repeater id="weekRows" dataProvider="{weeksAry}">
> <mx:GridRow>
> <mx:Repeater
> id="dayCells"
> dataProvider="{testStuff}"
> startingIndex="{weekRows.currentItem}"
> count="7">
> <mx:GridItem>
> <mx:Label text="{dayCells.currentItem}" />
> </mx:GridItem>
> </mx:Repeater>
> </mx:GridRow>
> </mx:Repeater>
> </mx:Grid>
--------------
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.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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/
--- Begin Message ---
I have this working to the point that I am creating a grid of 7 columns and the
appropriate number of rows to display all records returned from the
remoteObject.
As one might guess this will be an event calendar type display. Now I just
need to figure out how I use the dayFormat.mxml file I created when I started
with the Phones example and use it for the content of the GridItem cells
instead of the simple label I have in there now. Or do I just copy that entire
file's code into the main.mxml file fragment I've included here?
<mx:Grid width="100%" backgroundColor="yellow">
<mx:Repeater id="weekRows" dataProvider="{weeksAry}">
<mx:GridRow width="100%">
<mx:Repeater
id="dayCells"
dataProvider="{days}"
startingIndex="{weekRows.currentItem}"
count="7">
<mx:GridItem width="14%" backgroundColor="blue">
<mx:Label text="{Day.format(dayCells.currentItem.date)}" />
</mx:GridItem>
</mx:Repeater>
</mx:GridRow>
</mx:Repeater>
</mx:Grid>
I'd stick with using VOs over records, gives you that nice OO warm fuzzy
feeling. Columns fixed at 7, it seems. So return a array of objects that are
the parents that have the data for the grid. Note that these have 7 instance
variables that will populate your grid columns. Each of these can have a array
of other objects for your tile list.
DK
On 6/23/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> I have an object (coming from a ColdFusion CFC) that contains an array
> of objects that can be 28, 35 or 42 elements long. I would like to
> display this in a grid 7 columns wide and 4, 5 or 6 rows as
> appropriate. Each of these objects will contain a record set or
> another array of objects (I have not decided yet) that I will then
> want to pass to a tilelist inside each grid cell.
>
> I can not see how to even start this kind of display. Any help would
> be most appreciated.
--------------
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:2849
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=3356.3127.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
--- End Message ---