- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
This is how the Recommendations tab (bell icon) appears on the SOW Incident record page today. In this article, we’ll walk through how to control the visibility of the entire Recommendations tab, and also how to selectively show/hide the "Recommended Actions" and "Search" sub-tabs within it - based on conditions like table name.
1. Control the visibility of the Search sub-tab
This is the UX Client Script responsible for hiding or showing the Search tab in Recommendations in SOW: recommended_actions_1/hideSearchTab (/nav_to.do?uri=sys_ux_client_script.do?sys_id=44bb4c3dfb1a8a10763dfc785eefdc97)
For example, let's hide it for Incident table, so we will go ahead and return true from the client script for "incident" table:
As we see, only the Recommendations appear now, and the Search tab is hidden:
2. Control the visibility of the Recommended actions sub-tab
This is the UX Client Script responsible for hiding or showing the Search tab in Recommendations in SOW: recommended_actions_1/hideRecommendationTab (/nav_to.do?uri=sys_ux_client_script.do?sys_id=04bb4c3dfb1a8a10763dfc785eefdc97)
For instance, let's show it for Problem table, so we will go ahead and return false from the client script for "problem" table as well:
Leading to the Recommended actions sub-tab to also render for a problem:
3. Control the visibility of the whole Recommendations tab on SOW
On the Recommended Actions default UX Screen, the following UX screen condition (/nav_to.do?uri=sys_ux_screen_condition.do?sys_id=e670bfa71b7e025022bc0d81604bcb6c) renders the Recommendations icon and tab:
Internally, this calls the canViewRAPanel method of the RecommendedActionsSOWUtilSNC Script Include:
Here the Recommendations tab can be custom-rendered via roles, tableName etc. For example, let's hide it for the Incident table, so we will go ahead and return false from the script include, specifically for "incident" table:
Leading to the Recommendations tab hiding for the incident record while still coming up for other tables:
⚠️ Upgrade Note
These configurations involve modifying out-of-the-box scripts and script includes.
⚠️ These customizations will have to be addressed separately during app upgrades.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.