Jump to content

Recommended Posts

Posted

I realise that there has been a thread on this recently which suggests doing JSON debugging: http://www.edugeek.net/forums/home-access-plus/139194-hap-v10-problems-booking-system.html

 

I've got HAP 10.1 up and running on server 2012R2 and have run firebug. Results are below.

 

The only json response I can see is for the black drop down list with links to the various parts of HAP along with the custom category I have set up (Staff):

[ATTACH=CONFIG]25876[/ATTACH]

 

I also get the following errors in the console (with the all category selected in the firebug console):

 

TypeError: (intermediate value)(...) is not a function
https://localhost/hap/api/js/beforehap?/hap/bookingsystem/Cal.aspx=10.1.420.1900
Line 10

 

TypeError: $(...).fullCalendar is not a function
https://localhost/hap/bookingsystem/Cal.aspx
Line 146

 

TypeError: $(...).fullCalendar is not a function
https://localhost/hap/bookingsystem/Cal.aspx
Line 194

 

TypeError: $(...).fullCalendar is not a function
https://localhost/hap/bookingsystem/Cal.aspx
Line 194

 

One more thing to mention - Thank you for the excellent software!

  • 3 weeks later...
Posted

Hi Nick, I only have a fullcalendar.min.js file. No fullcalendar.js though.

 

FYI I downloaded fullcalendar from the authors website (same version as used in hap) and tried the fullcalendar.js on the offchance that it would work but it didn't.

Posted
hmm, that's for the calendar page not the default page, have you set up your resources in the config section yet? There should be some JSON queries going out to request bookings available for each resource.
  • Thanks 1
  • 3 weeks later...
Posted
Check your AD groups you are showing to by using the api call /hap/api/ad/roles/{username}. It'll give you a JSON list of role names which that user is a member of in HAP+'s eyes
  • Thanks 1
Posted

Thanks Nick.

 

Tried that and it returns an error about an incorrect username and password:

 

{"FirstName":null,"SiteName":null,"Token1":null,"Token2":"System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect.\u000d\u000a\u000d\u000a

 

I have verified that the hap account password is indeed correct in setup.aspx.

 

(I have also tried setting up hap on both a windows 7 machine and another 2012r2 machine on my test domain at home and both had the same result when using a domain admin account)

Posted
Thanks Nick.

 

Tried that and it returns an error about an incorrect username and password:

 

{"FirstName":null,"SiteName":null,"Token1":null,"Token2":"System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect.\u000d\u000a\u000d\u000a

 

I have verified that the hap account password is indeed correct in setup.aspx.

 

(I have also tried setting up hap on both a windows 7 machine and another 2012r2 machine on my test domain at home and both had the same result when using a domain admin account)

 

Did you solve this as I am getting the same error when I try the /hap/api/ad/roles/username thing.

 

Stuart

Posted

v10.0 is out of date, v10.2 is the current version, but internal alpha releases are currently out with the build number v10.3. 10.3 is due out at the end of the month once I finish fixing some more bugs.

 

The current release isn't giving the response it should do.

  • 2 weeks later...
Posted

For anyone else experiencing this issue with the Booking System Weekview page (Cal.aspx), I have managed to get it to work with the Booking System 4.5 and HAP 10.4 Core.

 

It looks like for some reason, the copy of the FullCalendar JavaScript file is being corrupted when it is loaded by the beforehap JavaScript tag (perhaps something to do with how it is being minifed?).

 

I needed to edit ~/BookingSystem/Cal.aspx:.

 

Under:

 

 

Add this line:

 

 

This loads another copy of the correct version of FullCalendar, which is not corrupted, at the beginning of the page, so the rest of the JavaScript on the page will function.

 

Hope this helps, until an update is available!

  • Thanks 1
Posted
For anyone else experiencing this issue with the Booking System Weekview page (Cal.aspx), I have managed to get it to work with the Booking System 4.5 and HAP 10.4 Core.

 

Perfect, Thanks! :D

 

I've tested it on a test install of HAP 10.2 and it works perfectly. I can't remember what version of the booking system my test instance uses but it is not the latest.

Posted

Ok, I've done some testing and it's a problem with the updated full calendar plugin, they removed some stuff, annoyingly.

 

Attached is the fix, it includes source code so you will just need to copy the dlls, css, js and aspx pages into the correct folders

HAP Alpha.zip

  • Thanks 1
  • 3 weeks later...
Posted

I've been really busy over the last few weeks, but I've just managed to upgrade HAP to 10.5 and applied the fix in the attachment you posted (which worked perfectly!).

 

Thanks again for all your help Nick (and Peter too for the temporary fix).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...