OVERVIEW:
- The 'Pop Search and Select' activity allows you to show the results grid in a custom popup inside Oracle Service Cloud and perform search & select operations. In the PopFlow Studio, you can configure the 'Pop Search and Select' activity.
- After opening 'Pop Search and select' activity, you will get the below configuration panel.
Default Configuration Parameters:
- Title: The title to be shown in the popup window.
- Allow Multi Selection: Select multiple rows in the popup window./ User Double Click on Grid: Select the single data and closes the popup.
- Data Source: The data to be displayed in the popup search results grid.
- Save Results In: Selected row will be stored in this.
Add Button allows you to add buttons to the popup. When the button is clicked, the activities defined in the button definition will be executed.
Add Searches allows you to add searches to the popup. When the search type is selected, and the search button is clicked the activities defined in the search selection definition will be executed.
HOW IT WORKS:
A Simple Example to configure the 'Pop Search and Select V2' activity in PopFlow Studio.
- Select the 'Pop Search and select' activity from 'Activity Sidebar'.
- Click on 'Pop Search and select' activity to open and configure the 'Set Interaction Data' activity.
- Once the Activity is opened now fill the Defaults required fields i.e. 'Title', 'Data Source' and 'Save Results In'.
- To select the 'Data Source' value we need to have either 'HTTPS' or 'GET DATA' activity values.
- In this example, we will be using 'HTTPS' activity to fetch the data from the API and show the result in 'Pop Search and Select'. To configure the 'HTTPS' activity please refer to the 'HTTPS' activity documents.
- After configuration of 'HTTPS' activity adds a 'Pop Search and Select' activity on the 'SUCCESS' button of 'HTTPS' activity as shown below.
- Now configure the Default fields 'Pop Search and Select' activity as shown below.
Searches:
- You can add the Search fields in the selected 'Data Source' to search the data from the list and filter the columns of selected 'Data Source'.
- After selecting the 'Data Source'. You can add multiple 'Search Options' by clicking on the 'Search Options' button.
- After clicking on the 'Search Option' you will get a search panel to configure your search. Enter the search name inside the 'Search Name' field.
- Select the search button "Filter in data Data Source" if you want the search to be faster. This will search in selected 'Data Source'.
- Select the search button "Filter in new Data Source".This will make a search in the 'Database' if some new value is updated then it will also return that value. To achieve this search you need to add the same activity with the same configuration on the Search Button whose 'Data Source' you are using for the search.
- For example, suppose you are using the 'HTTPS' activity result inside the 'Pop Search and Select' activity as a Data Source.
- Select the 'HTTPS' activity result as Data Source inside the 'Pop Search and Select' as shown below.
- Now create the search for the selected Data Source by clicking on the 'Search Options' button. Enter the search name and select the "Filter in new Data Source" button and Add Search fields to make serach on the selected column. You can add Search fields by Clicking on the 'Add Search Fields'.
- After creating the search you will notice there is a button created with the same name as 'Search Name' on the designer page under the 'Pop Search and Select' activity.
- Now add the 'HTTPS' activity on the 'CUSTOMER SEARCH' button to achieve the server-side searching. The 'HTTPS' activity should have the same configuration whose result is selected as a 'Data Source' for the 'CUSTOMER SEARCH' Search inside the 'Pop Search and Select'.
Columns To Show
- You can display all the columns of the Data Source or You can define the columns that will be displayed in the search grid. To define the columns click on the 'Columns To Show' button to create the fields. After clicking on button it will create a panel with 'Column Path' and 'Column Name' fields. In the 'Column Path' field enter the column path value and inside the 'Column Name' you can enter any friendly name for the title, 'Column Name' field is optional you can either enter the value or left it blank. If the 'Column Name' field is empty it will show the 'Column Path' Value as a Column Name.