Hey Corey,
 
I am putting it in the result handler for the service. 
Once the data comes back i loop over the result to create this structure
which i then store in the model and then bind as the dataprovider for
the component.
 
Cheers
Justin

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Saturday, 15 December 2007 5:30 AM
To: [email protected]
Subject: [flexcoders] Re: Google Scheduling Framework question



Justin

thanks so much for pointing me in the right direction. One question:
Are you putting this loop in the ScheduleData.as or in the main mxml
file function where the event:resultEvent comes back from the
HTTPService? 

I actually wrote a method in the ScheduleData.as that attempts to do
what I need it to do, but so far it returns the same row repeated for
every row below it, depending on how many rows i say it is. I will
attempt to tweak your much welcomed function to do what I need it to
do. Thanks !!!!

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Justin Raymond" <[EMAIL PROTECTED]> wrote:
>
> Hi Corey
> 
> 
> 
> I have manipulated this for one of my HR applications to show
positions
> held during employment down the Y Axis. Each row is a new position
with
> the x axis being variations in a position over time.
> 
> 
> 
> The key is changing the way the data provider is created. See below:
> 
> var result : Array = new Array();
> 
> for(i = 0; i < model.selectedEmployee.positions.length; i++){
> 
> var entry : ColoredScheduleEntry = new
> ColoredScheduleEntry();
> 
> 
> 
> entry.startDate = posSDate;
> 
> entry.endDate = posEDate;
> 
> entry.label = label;
> 
> entry.backgroundColor = 0x0C90DA;
> 
> 
> 
> 
> 
> var row : IList = new ArrayCollection();
> 
> row.addItem( entry );
> 
> result.push( row );
> 
> 
> 
> }
> 
> 
> 
> This lets you have rows of items (coloredScheduleEntries), effectively
> that 2d array structure
> 
> 
> 
> Hope this helps,
> 
> 
> 
> Justin
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Corey Smaller
> Sent: Friday, 14 December 2007 7:08 AM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Google Scheduling Framework question
> 
> 
> 
> Mike
> yea that is exactly what I am using--example 6. I already tweaked it
> and fixed the timeline to suit my needs (basically rounded off the
> numbers based on the current time ) and the rowset on the left i have
> populating with the channels. What i did was count the channel IDs and
> used that for the count of rows. The only problem I see (other than
> changing some of the methods and the timestamps are almost all based
> on milliseconds), is assigning the programs in the main to the proper
> rows. What I am doing wiht my XML return is including the channel ID
> for the programs and I envision assigning the program listings to
> their proper rows by matching the Channel ID (so, channel 5 is row 5
> and the program has the channel ID passed so it points to row 5) but
> again, the problem is WHERE is the AS does the schedule say the Y axis
> is each day (instead of each channel). does that make sense?
> 
> thanks for your help you guys, Im banging my head against the monitor.
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , Michael Wills <michael@> wrote:
> >
> > It looks like it is possible, if you are using FlexLib. Take a look
at
> 
> > the examples, specifically example 6.
> > 
> >
>
http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sch
<http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sc
h> 
> eduleViewer6_Sample.swf
>
<http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sc
<http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sc
> 
> heduleViewer6_Sample.swf> 
> > 
> > Source at:
> > 
> >
>
http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sch
<http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sc
h> 
> eduleViewer6_Sample.mxml
>
<http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sc
<http://flexlib.googlecode.com/svn/trunk/examples/SchedulingFramework/Sc
> 
> heduleViewer6_Sample.mxml> 
> > 
> > Is that what you are looking for?
> > 
> > Corey Smaller wrote:
> > >
> > > Hi y'all, I am new here but been coding flex for a while
> > > My question to the group:
> > > I am using the Google Scheduling Framework to build a channel
> selector
> > > not unlike the guide you see on your cable lineup, Tivo, etc.
> > > basically the X axis (timeline) is the time starting on the
current
> > > time rounded off to either the 00 or the 30 and the Y axis is the
> > > channel listings. The problem I am having is the Y axis is
dependent
> > > on the scheduling timeline- ie- if the entry being created is for
> > > tomorrow it puts it on the next row, 2 days out on the third row
> etc.
> > >
> > > What I want is each row to be based on the channel (channel ID
> > > probably) and NOT the timeline. so, if I create a program that
> starts
> > > at 7PM for channel 5 (id=5) I want it to be on the 5th row. I
cannot
> > > find the controller in the AS files that I can change to make the
> row
> > > dependent on channel ID and NOT the scheduled time. I hope this is
> > > clear. Does anyone know where to find this or can offer some help?
> any
> > > would be appreciated!
> > > thanks so much!!
> > >
> > > Corey Smaller
> > >
> > >
> >
> 
> 
> 
> 
>
########################################################################
#############
> Note:
> 
> This correspondence and any files transmitted with it are
confidential. If you
> are not the intended recipient, you must not disclose or use the
information
> contained in it. Any opinions expressed in this correspondence are
those of the
> individual sender, except where the sender expressly, and with
authority, states
> them to be the opinions of ABBOTSLEIGH.
> 
> If you have received this correspondence in error please notify
Abbotsleigh
> immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
> Neither the sender nor ABBOTSLEIGH warrants that any communication
via the Internet
> is free of errors, viruses, interception or interference.
Information is distributed
> without warranties of any kind. 
>
########################################################################
#############
>



 

#####################################################################################
Note:

This correspondence and any files transmitted with it are confidential. If you
are not the intended recipient, you must not disclose or use the information
contained in it. Any opinions expressed in this correspondence are those of the
individual sender, except where the sender expressly, and with authority, states
them to be the opinions of ABBOTSLEIGH.

If you have received this correspondence in error please notify Abbotsleigh
immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
Neither the sender nor ABBOTSLEIGH warrants that any communication via the 
Internet
is free of errors, viruses, interception or interference. Information is 
distributed
without warranties of any kind. 
#####################################################################################

Reply via email to