Configuring spotlight item
To show a value in the spotlight component, you need to add and configure a spotlight item.
- Open the spotlight configuration by clicking the Configure button or by hovering over the spotlight component.
- Click the Configure icon.
- Click the Spotlight items tab.
- Click +Add.
- Specify the name in the Component ID.
- In the General Settings tab, specify this information:
- Title
- This field is required. The title of the spotlight item is displayed below the value.
- Subtitle
- This field is optional. The subtitle of the spotlight item is displayed below the title.
To enable the translation keys, enlose the name in <> and do not use spaces. - Click the Operations tab and select a data service to connect it to the spotlight item.
An operation indicates how the data is used in the component. The default operation available for spotlight items is Read data, which is used for data services that use get or list transactions.
- Click the Interaction tab and click +Add. Specify this information:
- Source component
- To identify what triggers the interaction, select a source component from the list. You can select the spotlight, other components or the application.
- Component element
- This field is optional. Select if a specific element in the source should trigger the event.
- Event
- To identify when the interaction is triggered, you can select an event from the list. When the current component, another component, or the application loads, is selected, is refreshed, or when a search field is used, the event can occur.
- Operation
- To identify which operation is triggered by the interaction, select the operation that is connected to the required data service.
Note: If you select the appliation as the source component, the Load event and Read operation fields are automatically selected. - To configure the value to show in the spotlight item, click the Properties tab and specify these information:
- Value type
- The value that is displayed in the spotlight item.
-
- Count rows: Displays the number of records that the API returns.
- Summarize values: Displays the sum of the values in the field that you select in the Value field for the records that the API returns.
Note:The number of records that the API returns is configured in the data service.
- To show an optional unit of measure, specify a text in the Unit of measure field.
To enable the translation keys, enclose the name in <> and do not use spaces.
- Click Save to save your changes.