Enable full view search for Recommended Actions in a configurable workspace
The full view search feature displays the AI search results in a new subtab with an expanded view. Use the following information to enable this feature in any configurable workspace.
Before you begin
Role required: admin
About this task
AI search results appear in the Recommended Actions tab in the contextual side panel in the form of guidances that you can act on. Selecting the Full view search icon displays the AI search results in a new subtab with an expanded view.
When a user selects the Full view search icon, the Recommended Actions application dispatches an event called RECOMMENDED_ACTIONS#ACTION_CLICKED with a type of raExpandedSearch. This event needs to be handled in the corresponding team layer that wants to uptake the full view search page. The following code snippet provides an example about how to navigate to the page with the correct properties.
if (event.payload.actionProps.type == 'raExpandedSearch') {
const { contextTable, contextId, contextSysId,
searchTerm,selectedFilterTab,selectedFacetOptions,
selectedSortOption,actionConfigurations } = event.payload.actionProps;
helpers.navigate.to('ra-expanded-search', { 'contextTable':
contextTable, 'contextId': contextId }, {'contextSysId': contextSysId,
'searchTerm': searchTerm, 'selectedFilterTab': selectedFilterTab,
'selectedFacetOptions': selectedFacetOptions, 'selectedSortOption':
selectedSortOption, 'actionConfigurations':
JSON.stringify(actionConfigurations)}, false, false, 'current');
}Use the following steps to define the full view search page in a configurable workspace.