Service Portal - fdlGitHub/ServiceNow GitHub Wiki


Pages visibility limitation

By default, pages are accessible depending on the role assigned on them. There 2 plugins, uninstalled by default, that can allow administrators to have an advanced configuration.

Service Portal - Restricted Pages (com.glide.service-portal.pages.restricted)
Service Portal User Criteria Support (com.glide.service-portal.user-criteria)

Get the Scope of an element

angular.element($(<UNIQUE_IDENTIFIER>)).scope();

Remove duplicates into notifications

$rootScope.$on("$$uiNotification", function(event, notifications) {
    event.stopPropagation();
    var newNotifications = function (array) {
        var uiNotification = {};
        return array.filter(function (obj) {
            var container = obj.message + '|' + obj.type;
            if (!uiNotification[container]) {
                uiNotification[container] = true;
                return true;
            }
        });
    }(notifications);
    
    $rootScope.$broadcast("$$uiNotification.dismiss");
    $rootScope.$broadcast("$$uiNotification", newNotifications);
});

JS Libraries

GoJS

/scripts/libs/gojs/1.7/gojs.js

London / Madrid / New-York / Orlando / Paris / Quebec / Rome

Highstock

/scripts/glide-highcharts.js

Rome

Paris / Quebec

New-York / Orlando

Madrid

London