Service Portal FullCalendar

xiaix
Tera Guru

Just wanted to share some work I've done for those who would like to incorporate FullCalendar (FullCalendar - JavaScript Event Calendar ) into your Service Portal.

Here is what mine looks like now:

find_real_file.png

find_real_file.png

All the code is attached to this post (FullCalendar_For_ServicePortal_Helsinki.zip)

I hope someone finds it useful.

Message was edited by: David Dunn (** Updated code to fix Quick Access Event adding and coloring bug(s))

Message was edited by: David Dunn *MAJOR UPDATE*..   See my post below, on July 30, 2017

79 REPLIES 79

bahonurn
Kilo Contributor

Hi thanks for reply but when i try to write on the Server Script of the widget, it gives me no change at all whatever i try with timezone. And besides that code you sent me gets complaint with Intl as undefined. 

I think i need to understand how the variable is later populated in the fullcalendar. The thing is declaring that 

var calendarTimeZone = 'Europe/Stockholm'; //Or anything else

 

has no effect to the calendar at all. I tried to set it with jquery the way it is intialized with timezone key/value but still no success. 

Intl is native to Javascript (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) however, your browser may not support it (http://marcoscaceres.github.io/jsi18n/)

 

find_real_file.png

I uploaded a list of TimeZone strings you can use.  (see attached)

bahonurn
Kilo Contributor

Thanks a lot i appreciate it. But i think my problem is the why i am declaring it in the widget. I am declaring the same you have posted in the widget's server script top. Am i doing it right?

xiaix
Tera Guru

Updated Client Script.js and Server Script.js


Reasons:


  1. Fixed bug where if you changed a category name/color and then added a new event, the old category name/color would still be there.
  2. Fixed bug where event name wrapping was not getting performed when a new event was added.
  3. Added "gv__" to the 6 global variables at the top of the Server Script.