FishCustard Posted August 31, 2013 Posted August 31, 2013 Just setting up the Booking System, and have encountered an issue: when I click on the pencil in the corner of a timetable field, absolutely nothing happens. No JS errors are logged in Firebug, just nothing. I have the same lack of response to clicking on different days in the 'Overview Calendar'. Any ideas appreciated!
nickbro Posted August 31, 2013 Posted August 31, 2013 You don't need to click in the corner as that is just a label telling you what you can do. Hmm very odd. Does the URL of the page change when you click on Days in the overview Calendar? It should add #dd-mm-yy
FishCustard Posted August 31, 2013 Author Posted August 31, 2013 The 'Overview Calendar' thing has been resolved by clearing the browser cache, however the issue with clicking on bookings remains. When I click on a booking, the URL does not change at all. However, if I try to navigate to the link target URL (as in ' https://server/HAP/bookingsystem/#A1-period2') I get: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0. Any idea which string is it referring to? I get a feeling this is something borked in the booking system setup files, but we need to know which string is invalid... Thanks for your help so far
nickbro Posted August 31, 2013 Posted August 31, 2013 Looks like an error is happening. The hashtag (#) in the address should only contain a date, if it doesn't then something is going wrong. You will need to do some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html to find out why the URL is getting like that
FishCustard Posted August 31, 2013 Author Posted August 31, 2013 Wait, so the target URL when I click on a booking field to book a room should contain a date?
nickbro Posted August 31, 2013 Posted August 31, 2013 It uses javascript to open the booking form, which should be instant, if it's reloading the page, or opening a new tab then something is going wrong. The URL at the top of the page shouldn't change, as HAP+ uses that to know which date to get. 1
FishCustard Posted August 31, 2013 Author Posted August 31, 2013 Riiiiight, got it. It's simply doing nothing - no reloads, no popups, just sitting there.
nickbro Posted August 31, 2013 Posted August 31, 2013 Ok can you look at the developer tools in the browser and see if anything is getting logged into the console.
FishCustard Posted September 1, 2013 Author Posted September 1, 2013 (edited) Nothing whatsoever logged to the console, all the 'Free' fields have the following CSS class=" booked" (i.e. a class list of null/a space, and then 'booked') - that doesn't look right. When I manually replace it with 'free', I get the CSS animation, but still no event. Adding things to the StaticBookings.xml file (which previously contained nothing) also has no effect on this issue. The static bookings show up, but no other change. Edited September 1, 2013 by FishCustard
FishCustard Posted September 1, 2013 Author Posted September 1, 2013 I think I might have it - I believe all the rooms are being treated as read-only to all users. I put the name of an Active Directory group ('Staff Users') in the readwriteto= field in hap_config.xml for each room, is that correct?
FishCustard Posted September 1, 2013 Author Posted September 1, 2013 (edited) Thanks, Nick, I'd just tried removing the Staff Users group (so there's nothing in there at all) and it now works perfectly. Mark this ticket 'closed - PEBKAC'.... Now to get SIMS to give me all the room data, not just two lessons for one room... -__- EDIT: Just fixed that too. You might want to mention in the Codeplex documentation that the SIMS RptDef file needs to be edited to reflect your school's IT rooms. E3 for instance here is something completely different! For some reason I thought it'd just give me everything. Edited September 1, 2013 by FishCustard
nickbro Posted September 1, 2013 Posted September 1, 2013 Editing the room is in documentation PDF file. It's been a while since I coded that. I manually put the stuff in, so hard to remember sometimes. Good to hear it's all working now :-)
FishCustard Posted September 1, 2013 Author Posted September 1, 2013 Ahh, right okay. I need to remember to RTFM!! Sorry, would you mind clearing something else up, when I try to run the import, I get User cannot be found from Parameter name: MainTeacher Is this a problem with my AD connectivity (i.e. it can't connect to AD), or something else. I've tried various name formats, including the username, but get the same error.
nickbro Posted September 1, 2013 Posted September 1, 2013 The Notes field is what HAP+ uses to get Mr. N Brown from, for example. Put the staff names, as they match SIMS, into the AD notes fields and it should import correctly.
FishCustard Posted September 2, 2013 Author Posted September 2, 2013 This is the 'Notes' field on the 'Telephone' tab of the User object, right? Done that and still no change.
nickbro Posted September 2, 2013 Posted September 2, 2013 Yep, that's right, you may need to recycle the application pool for it to clear the cache of user lookups
FishCustard Posted September 3, 2013 Author Posted September 3, 2013 I've cleared the pool, still doesn't work - any logs I can check to see what's failing?
nickbro Posted September 4, 2013 Posted September 4, 2013 None unfortunately, you can try manually entering one in via the admin page, then using the staticBookings.xml file and altering that (which is quicker)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now