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

moah
Kilo Explorer

I'm having this issue:


Uncaught TypeError: $(...).fullCalendar is not a function


      at Scope.$scope.initializeCalendar (VM168 va0b3d0f….js:928)


      at eval (VM168 va0b3d0f….js:40)


It looks as though it's not understanding what this is:


find_real_file.png



That's perhaps because you didn't add the widget dependencies as depicted by the screenshots in the "FullCalendar_For_ServicePortal_Helsinki \ Widget \ Widget Dependencies" folder:


find_real_file.png



find_real_file.png


moah
Kilo Explorer

find_real_file.png


find_real_file.png



Hi David, Thanks for responding but I have still have same problem.


moah
Kilo Explorer

I have new issue:



Uncaught TypeError: Cannot read property 'hasTime' of undefined


      at P (cdsCal_fullcalendar_min_js.jsdbx:6)


      at O (cdsCal_fullcalendar_min_js.jsdbx:6)


      at V (cdsCal_fullcalendar_min_js.jsdbx:6)


      at z (cdsCal_fullcalendar_min_js.jsdbx:6)


      at cdsCal_fullcalendar_min_js.jsdbx:6


      at Function.map (cdsCal_jquery_min_js.jsdbx:2)


      at p (cdsCal_fullcalendar_min_js.jsdbx:6)


      at Array.<anonymous> (cdsCal_fullcalendar_min_js.jsdbx:6)


      at Function.each (cdsCal_jquery_min_js.jsdbx:2)


      at constructor.Ut (cdsCal_fullcalendar_min_js.jsdbx:6)


xiaix
Tera Guru

Updated Client Script.js and HTML Template.html


Reasons:


  1. Word-wrapped long event names in both the Calendar Month view and Quick Access view:

find_real_file.png



        2. Added the ability to Hex edit the Quick Access Event colors.   Before, you could only use the color picker:


find_real_file.png



3. Creating a new event will now pull up a menu with more options instead of only letting you choose an event name in an alert box:


find_real_file.png