Hello, I want to display a pop up and basically disable any functionality on the page by saying the portal is down for maintenance and redirect the users to another page. I wanted to do this on my hr portal. Any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2018 11:00 AM
Hello, I want to display a pop up and basically disable any functionality on the page by saying the portal is down for maintenance and redirect the users to another page. I wanted to do this on my hr portal. Any suggestions?
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2018 03:15 PM
Hi,
you can display a pop-up message on the SP page and then you can redirect to whatever page required by writing this code in any of the widgets on that particular page.
<div ng-init="c.openModal()">${Open Modal}</div>
</div>
<script>
<div class="panel panel-default" style="padding-top: 10px;" >
<div class="panel-body wrapper-xl" style="font-size : 30px; color: red;" >
portal is down for maintenance
</div>
</script>
var c = this;
c.openModal = function() {
$timeout(function() {
$location.url('incident_list.do'); //Url which you want to redirect
}, 4000);
c.modalInstance = $uibModal.open({
templateUrl: 'modalTemplate',
scope: $scope,
animation: true,
backdrop: false,
size: 'xs', //change the color text type and size based on requirement
resolve: {
'$modalInstance': function () { return function () { return modalInstance; }; }
}
});
};
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 08:05 AM
Hi Abhishek,
We are having an upgrade and we wanted to display that pop-up while the upgrade is going on (like for a period of time - say 10 hours) so that the users are aware the instance is down for maintenance. From your previous reply i understood that you have to include the code in any one of the widget on SP. I just have a concern, does the solution you provided disable the functionality of the portal? For example - when the pop shows up the background is grayed out and users cannot interact with it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2018 10:03 AM
Also i tried the solution provided but it did not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2018 11:20 AM
Yes, The users will not be able to do anything on the portal. See this screenshot
The user will see the message then after specified time, this will be redirected to whatever page we want. The user will not be able to close the message or do anything on the portal. The message box can be modified and designed based on the requirement.
Thanks