Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Timetable report Expand / Collapse
Author
Message
Posted Tuesday, March 4, 2008 5:50 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, June 4, 2014 8:03 AM
Points: 33, Visits: 177
Looking for some advise on how to construct a timetable report for students.

Normal stuff - 7 days a week down the left, lesson schedules from 8am to 9pm across the top. Lesson 3 on a Monday(930 - 1030)can be different time/length to Tuesday lesson 3 (945 -1030). A students could have 1 lesson or 20 lessons.

Cheers! P




Post #463696
Posted Tuesday, March 4, 2008 10:03 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:16 PM
Points: 36,959, Visits: 31,468
Lookup CROSS TAB in Books Online for starters...

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #463893
Posted Tuesday, March 4, 2008 4:06 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, June 4, 2014 8:03 AM
Points: 33, Visits: 177
you mean a matrix? i have already put that together (couple of years RS exp.). The issue is to do with the length of the period

This is what i want . ...........9.............10...........11..........12...........1...........2..........3............4...........5.........6
Mon maths english
Tue SSRS tutorial
Wed French
Thur science
Fri tutorial

- Student may only have lessons on Mon, Tue, Fri (got this to work by unioning data from a timetable setup table
- Sessions might not be hour based eg Monday period 2 starts at 10 but oon a friday it starts at 1020

Matrix seems to work but if a student has a 15 min tutorial, this fills a whole column the same as a hour eg

..........9.............10.........1045.........11..........1115......12...........1...........2........
Mon maths english
Tue SSRS tutorial
Wed French
Thur science
Fri tutorial




Post #464140
Posted Tuesday, March 4, 2008 5:18 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:16 PM
Points: 36,959, Visits: 31,468
spencepa (3/4/2008)
Matrix seems to work but if a student has a 15 min tutorial, this fills a whole column the same as a hour


What do you want it to do?


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #464160
Posted Wednesday, March 5, 2008 7:38 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, July 15, 2013 1:11 PM
Points: 138, Visits: 698
Does your format demand the time periods across the top and days down the side? If it doesn't, I'd try it the other way around. It seems to me it'd be easier to have the static seven days fixed as headers and the dynamic times on the side.
Also, I'm not sure how I'd do it, but I'm thinking some kind of bar or line chart might be appropriate here.
Sorry this is more hypothesis than concrete answers.
Hope it helps some though.
Good luck


toolman
Numbers 6:24-26
Post #464431
Posted Wednesday, March 5, 2008 7:53 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, June 4, 2014 8:03 AM
Points: 33, Visits: 177
existing thick client app:



The issue is the classes that cross or start in the middle of time periods - eg a lessons goes from 930-1045 and the next one 1050-1230. The example crosses the boundaries of 1100 but also starts in the middle of 9-10... The next day classes might start at 9am....

The way they are doing it the aspx app is draw a grid and overlay boxes with co-ordinates (eg 80 left, 100 wide) on top....

The chart is worth investigating...



Post #464450
Posted Thursday, March 6, 2008 10:22 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Thursday, March 27, 2014 1:47 PM
Points: 215, Visits: 415
A few suggestions:

- First, consider in investing in a license for Dundas Controls. These folks sold the stripped down version used in reporting services to Microsoft, so they know the technology. Their current control set is very feature rich, with nice rendering capabilities.

- You'll want to do a "bar chart", where you're converting the times down to a fine enough level of detail. With the Dundas controls you'll have more options of text over, auto movements, etc. but I believe you can achieve the desired effect in the stock control.

- With "short time periods", you'll probably want to put the longer labels into a text popup. In general (for ease of design), I'd stick with session Ids (i.e. MAT101) for the fixed labels, and if available put the longer definition in the text popup (i.e. Mathematics 101, Room 12) or a legend.

- You didn't say what your export or print expectations. For export, I'd restrict it to PDF (why worry about the Excel in this case). Printing almost demands the legend.

Good luck.
Post #465341
Posted Tuesday, March 11, 2008 3:45 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, June 4, 2014 8:03 AM
Points: 33, Visits: 177
thanks for the pointers.

Dundas is a no go ATM - we are redeveloping a product and it needs to use vanilla RS, then we will offer consultancy, fleshing them out. We have a legacy product which has over 500 report type pages!!!

Anyway, got it pretty much done now, though it is abit basic. I used a table function to return days, hours, 0 and 30 minute rows to structure the matrix
eg
day, hour, minute, datetime
2,8,30, 1900/01/01 08:30.000
2,9,00, 1900/01/01 09:00.000
2,9,30, 1900/01/01 09:30.000
....

I then left outer joined to the above on the day and between the lesson start and end (with a little hacking for lessons that start at 1045), creating a txt string of start/end/room/tutor etc

Finally i can run an update where there are duplicate day/hour/minute rows and concatenate the txt together (eg 9-1015 Engl01 R101, 1015-1100 MATH03 R209). Rough looking with not the best dataset:




Post #467245
Posted Tuesday, March 11, 2008 5:06 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 3:16 PM
Points: 36,959, Visits: 31,468
Note that it matters, but I like that vertical format better. More closely resembles even preformatted hard-copy schedules.

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #467272
Posted Tuesday, May 31, 2011 9:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:28 AM
Points: 1, Visits: 35
Hi There Spencepa - -I assume the report you are trying to create is based on REMS student records system - We are in the process of trying to create a similar thing - i know its a bit cheeky but any chance of sharing your RDL file with us as that is exactly what we after !

Regards

Duffster

duffster28@hotmail.com
Post #1117487
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse