J
jsniemi79
Guest
I had custom code in the classic UI to switch the calendar view to show only tasks and appointments for the logged in user. With the new UI, the elements have changed. Can anyone point me in the right direction to accomplish the same task as the classic UI? Here is my code from the classic UI. calendarSectionName = 'Calendar'; function setCalendarFilters() { /* Description: Use to set 'Show' filter Possible values for objectFilter variable: 1. -1 => All Tasks & Events 2. -10 => All Tasks 3. -20 => All Events 4. => Specific Object(e.g 110006390) */ var objectFilter = '-1'; $("#rbe_objectsFilter").val(objectFilter); /* Description: Use to set 'Assigned To' filer Possible values for assignedToFilter variable: 1. Me => Only Me 2. ALL_USERS => Any Users 3. R => Specific role(e.g R90) 4. G => Specific group(e.g G110007529) */ var assignedToFilter = 'ME'; $("#rbe_assignedToFilter").val(assignedToFilter); } function delayedRefresh() { delayInMilliseconds = 3000; setTimeout(function() { rbf_refreshData(); $("div[name='"+calendarSectionName+"']").show(); }, delayInMilliseconds); } $("div[name='"+calendarSectionName+"']").hide(); rbf_addOnLoadMethod(setCalendarFilters); rbf_addOnLoadMethod(delayedRefresh);
Continue reading...
Continue reading...