Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 646691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:38:25+00:00 2026-05-13T21:38:25+00:00

I have some data passed into the flex via webservices, and want to create

  • 0

I have some data passed into the flex via webservices, and want to create a timetable. As of current, I have a timetable but the day is a column, time is a column and so on, by mapping the datafield to those columns.

I need to flip this around and have all day columns and one time column, with each day column filter to the day property, if you get what i mean.

HOw would i go about doing this? Is there a datafield property to filter this way, or is there a better way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:38:25+00:00Added an answer on May 13, 2026 at 9:38 pm

    Assuming I understand what you’re looking for correctly, here’s what I came up with.

    Basically, just create a column for each day in your datagrid and bind them to whatever value you want in your ArrayCollection. Then set the visible property for that day’s column to true based on the values in the ArrayCollection. I hope this helps!

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:ArrayCollection id="arrColl">
            <mx:source>
                <mx:Array>
                    <mx:Object theClass="Class1" time="10:00" day="Monday"/>
                    <mx:Object theClass="Class1" time="2:00" day="Wednesday"/>
                    <mx:Object theClass="Class2" time="8:00" day="Tuesday"/>
                    <mx:Object theClass="Class3" time="9:30" day="Tuesday"/>
                    <mx:Object theClass="Class4" time="10:00" day="Friday"/>
                    <mx:Object theClass="Class4" time="12:00" day="Thursday"/>
                </mx:Array>
            </mx:source>
        </mx:ArrayCollection>
    
        <mx:DataGrid id="dataGrid"
                dataProvider="{arrColl}"
                width="400"
                rowCount="6">
            <mx:columns>
                <mx:DataGridColumn dataField="theClass" />
                <mx:DataGridColumn dataField="time" />
                <mx:DataGridColumn headerText="Monday" dataField="time">
                  <mx:itemRenderer>
                    <mx:Component>
                        <mx:HBox>
                            <mx:Label text="{data.time}" visible="{data.day == 'Monday'}" />
                        </mx:HBox>
                    </mx:Component>
                  </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Tuesday" dataField="time">
                  <mx:itemRenderer>
                    <mx:Component>
                        <mx:HBox>
                            <mx:Label text="{data.time}" visible="{data.day == 'Tuesday'}" />
                        </mx:HBox>
                    </mx:Component>
                  </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Wednesday" dataField="time">
                  <mx:itemRenderer>
                    <mx:Component>
                        <mx:HBox>
                            <mx:Label text="{data.time}" visible="{data.day == 'Wednesday'}" />
                        </mx:HBox>
                    </mx:Component>
                  </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Thursday" dataField="time">
                  <mx:itemRenderer>
                    <mx:Component>
                        <mx:HBox>
                            <mx:Label text="{data.time}" visible="{data.day == 'Thursday'}" />
                        </mx:HBox>
                    </mx:Component>
                  </mx:itemRenderer>
                </mx:DataGridColumn>
                <mx:DataGridColumn headerText="Friday" dataField="time">
                  <mx:itemRenderer>
                    <mx:Component>
                        <mx:HBox>
                            <mx:Label text="{data.time}" visible="{data.day == 'Friday'}"/>
                        </mx:HBox>
                    </mx:Component>
                  </mx:itemRenderer>
                </mx:DataGridColumn>
            </mx:columns>
        </mx:DataGrid>
    
    </mx:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a method that has some data objects passed into it, does some
I have some data that won't printf.... echo works, but not printf There is
I have some data that I am displaying in 3 column format, of the
I have a View Controller where I select some data into an array and
I want to pass some data around threads but want to refrain from using
I am writing some validation code. The code will take data passed into a
I use this bit of code to feed some data i have parsed from
I have some data with one row of headers and one or more rows
I have some data that I would like to visualize. Each byte of the
I have some data formated like the following 2009.07.02 02:20:14 40.3727 28.2330 6.4 2.6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.