- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 04:12 PM
Is there a straight forward way to replicate the behaivor of the current top blue box that Hi Support displays for announcement?
Thanks,
David
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 10:02 PM
Hi David [davidsizu ],
This is a custom implementation in HI. In the Header widget attached to the theme of the portal, you can make below modification to achieve this.
Server:
- Fetch the systemwide notification properties from the sys_property table.
- If the notification is only for logged in user - use gs.isLoggedIn() to determine if the notification is for guest/authenticated user. Since the header is also visible on the unauthenticated page, you might want to add this check.
Sample code:
data.securityMessageText = gs.getProperty('systemwide.security.message.text', '');
data.securityMessageLinkURL = gs.getProperty('systemwide.security.message.linkurl', '');
data.isLoggedIn = gs.getSession().isLoggedIn();
HTML Template:
- Update the HTML to show the custom announcement banner
- Use the above data properties to show data.
On cancel, we are storing the state in the session so that the message will not appear for the current session of the user.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 04:33 PM
Hi David,
Check if this thread may help you ServiceNow Geneva Header Informational Message ,Display Messages With UI Notifications - ServiceNow Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 07:47 AM
@raj Can you reply to this thread with how we did this please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 11:39 AM
Thanks Bharath, Im looking for the complete bar and have the ability to display more text in it, but this could help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2017 10:02 PM
Hi David [davidsizu ],
This is a custom implementation in HI. In the Header widget attached to the theme of the portal, you can make below modification to achieve this.
Server:
- Fetch the systemwide notification properties from the sys_property table.
- If the notification is only for logged in user - use gs.isLoggedIn() to determine if the notification is for guest/authenticated user. Since the header is also visible on the unauthenticated page, you might want to add this check.
Sample code:
data.securityMessageText = gs.getProperty('systemwide.security.message.text', '');
data.securityMessageLinkURL = gs.getProperty('systemwide.security.message.linkurl', '');
data.isLoggedIn = gs.getSession().isLoggedIn();
HTML Template:
- Update the HTML to show the custom announcement banner
- Use the above data properties to show data.
On cancel, we are storing the state in the session so that the message will not appear for the current session of the user.