Adobe Dreamweaver Forums



Last 10 THreads :         Live stream player (Last Post : noobie_here - Replies : 0 - Views : 1 )           »          cfloop within a cfif tag (Last Post : Azadi - Replies : 2 - Views : 3 )           »          Making constraints on a symbol... (Last Post : sirkibble2 - Replies : 0 - Views : 1 )           »          Creating a boundry in the stage... (Last Post : fazstp - Replies : 2 - Views : 3 )           »          Director or Flash? (Last Post : Sean Wilson - Replies : 1 - Views : 2 )           »          DW8 Activation not working (Last Post : moonliner - Replies : 0 - Views : 1 )           »          Re: Mouse capture won't activate (Last Post : robertnagle - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          help! my FB3 has gone insane! (Last Post : peteandrus - Replies : 0 - Views : 1 )           »          How come the html is being displayed, and not the link (Last Post : Skaterstu - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 08-29-2008, 04:43 AM
fypstudent
 
Posts: n/a
Diggs:
Default Creating Timetable using Datagrid

Hi, can anyone help me with this problem?

I want to do a class timetable displaying on datagrid.

I have a CSV file which shows all the staff's timetables together. The picture
shown below:
Picture can be seen in here:
http://i192.photobucket.com/albums/z...s/Picture5.png


The datagrid which I do now manage to draw individual staff timetable from the
database of all staff table. What I did for this is using PHP and <mx:request>
in flex. The following are some codes which I had did to draw individual
staff's timetable.

In Flex:
<mx:HTTPService id="allData"
url="http://localhost/timetableTest/src/scripts/ti metable.php"
result="timetableHandler(event)" method="POST" showBusyCursor = "true">
<mx:request xmlns="">
<staffid>{selectedProfileID.staffid}</staffid>
</mx:request>
</mx:HTTPService>

In PHP:

$staffid = mysql_real_escape_string($_POST["staffid"]);
$sql = "SELECT * FROM timetable WHERE staffid = '$staffid'";

What is display:
Picture can be seen in here
http://i192.photobucket.com/albums/z...s/Picture2.png

Current, what it displaying now is all the result return from the PHP file.
Meaning it is not sort into the correct time and day. It should sort into the
time and day such as this example:

Picture can be seen in here:
http://i192.photobucket.com/albums/z...s/Picture1.png

Anyone can help?
Thanks!Text



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-29-2008, 07:55 AM
anirudhs
 
Posts: n/a
Diggs:
Default Re: Creating Timetable using Datagrid

Hi,

Take a look a Ely's calendar component: thttp://www.quietlyscheming.com/blog/components/in teractive-calendar/
Reply With Quote
  #3 (permalink)  
Old 08-29-2008, 03:40 PM
fypstudent
 
Posts: n/a
Diggs:
Default Re: Creating Timetable using Datagrid

Thanks for it!
I will try on it.
Reply With Quote


  #4 (permalink)  
Old 08-30-2008, 07:59 PM
fypstudent
 
Posts: n/a
Diggs:
Default Re: Creating Timetable using Datagrid

Is there another way beside the calendar as the source code they given was too complicating and I was unsure asI am still a beginner in Flex. Thanks for the help.
Reply With Quote
  #5 (permalink)  
Old 08-31-2008, 01:07 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Creating Timetable using Datagrid


"fypstudent" <webforumsuser@macromedia.com> wrote in message
news:g9c4cv$96r$1@forums.macromedia.com...
> Is there another way beside the calendar as the source code they given was
> too complicating and I was unsure asI am still a beginner in Flex. Thanks
> for the help.


This might point you in the right direction...

http://flexdiary.blogspot.com/2008/0...es-in-as3.html


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk