Home Access Plus+ Thread, [v7.5] Booking System Updates in Projects:; Hi Nick, I have same problems as Matt. But as an added issue the .xml files I've imported for 'static ...
Hi Nick, I have same problems as Matt. But as an added issue the .xml files I've imported for 'static bookings' is not viewable on the calendar although they appear in the admin panel. Using Server 2003 and IIS 6. If I attempt to edit a static booking I get a message about tables. Sorry not to be clear, but just thought of this before I go and get an early night for a change!
SIMS import still isn't working yet. As for the other matter, something isn't running correctly. HAP+ isn't returning the data correctly to the user when an Update is called. Which is telling me your server isn't responding with a JSON response. What Server are you running HAP+ on?
Windows Server 2008 R2 Enterprise (sp1) (64bit) - Is there anything i can do to test JSON?
Paste that in here so I can have a look. The calendar won't allow you to go forward/backward if the date if you are not an admin, or you only have 2 weeks ahead that doesn't cross the week barrier.
Paste that in here so I can have a look. The calendar won't allow you to go forward/backward if the date if you are not an admin, or you only have 2 weeks ahead that doesn't cross the week barrier.
Can you check for javascript errors
how is this nick
var user = { username: 'HS', isAdminOf: [ 'LC1', 'LC2', 'LC3' ], isBSAdmin: true, minDate: new Date(2011, 9, 19), maxDate: new Date(2011, 9, 7), maxBookings: -1 };
HS is my username and am a member of domain admin's and teachers
new Date(2011, 9, 19), maxDate: new Date(2011, 9, 7)
You need to go into the Control Panel, and make sure all of the term dates are correct. The system will use the last term date for the maxDate for Domain Admins.
2011, 9, 7 == 7/10/2011 (your limit date, this should be July Next Year really)
2011, 9, 19 == 19/10/2011 (this is basically the current date or the min date, this is working correctly)
new Date(2011, 9, 19), maxDate: new Date(2011, 9, 7)
You need to go into the Control Panel, and make sure all of the term dates are correct. The system will use the last term date for the maxDate for Domain Admins.
2011, 9, 7 == 7/10/2011 (your limit date, this should be July Next Year really)
2011, 9, 19 == 19/10/2011 (this is basically the current date or the min date, this is working correctly)
as youcan see we have four terms and I have figured out that is getting the limit date from term 3 and not term 4
, not sure what to do about it
Cheers Dave
PS does it matter about the half term dates , we dont have halfterm breaks as such but I could use them for teacher only Professional development days?
I added some new resources and changed an existing one they do not seem to have been populated - could be the same problem??
Last edited by CountNZ; 20th October 2011 at 09:39 AM.
Reason: additional
This is odd, there is nothing hard coded in HAP+ that states to just load 3 terms, I use terms.Count - 1 for initializing the array (arrays start at 0, so 0 -> 3 == 4). The only thing I can think of is the half term dates. Can you set these to be a Saturday and make sure they fall inside the term
What's happening is the system is picking up on term 3 because of the half term dates, and ignoring term 4 because, again, of the half term dates
Code:
foreach (Term t in terms)
if (date >= t.StartDate && date <= t.EndDate)
{
if (date >= t.HalfTerm.StartDate && date <= t.HalfTerm.EndDate)
{
date = t.HalfTerm.EndDate;
if (date.DayOfWeek == DayOfWeek.Friday) date.AddDays(3);
else if (date.DayOfWeek == DayOfWeek.Saturday) date.AddDays(2);
else if (date.DayOfWeek == DayOfWeek.Sunday) date.AddDays(1);
}
}
Last edited by nickbro; 20th October 2011 at 10:11 AM.
Have been away for a few days so back to looking at the booking system.
I changed the mid term dates to Saturdays and added the two dlls from bin.zip and restarted iis.
Also had a poke around to see why the resources were not showing as free (ie just white space where
it should be a grey square saying Free/not booked and realised that the resources that were blank
had spaces in the name so I took out spaces in the rersource name and they all show now. great!
interesting that you can have a space in the lesson name? but not the resource name.
ie var user = { username: 'HS', isAdminOf: [ 'LC1-30', 'LC2', 'LC3', 'T9Classroom-15', 'B1Classroom-15',
'SciencePOD-18', 'C1Classroom-30', 'ScienceLaptops-8', 'Minibus1', 'Minibus2' ], isBSAdmin: true, minDate:
new Date(2011, 9, 25), maxDate: new Date(2011, 9, 7), maxBookings: -1 };
still unable to expand the small calendar and still showing the same maxdate on my logon also the
overview shows this error
tried logging on as a normal teacher and was able to expand the small calendar andd the pages source shows
the correct maxdate
var user = { username: 'hs2', isAdminOf: [ ], isBSAdmin: false, minDate: new Date(2011, 9, 25),
maxDate: new Date(2011, 10, 27), maxBookings: 5 };
however still the same error page when trying to get the overview