By selecting the chart context, users can navigate to other applications. A smart chart provides:
The chart-only view provides a way to analyze data from different perspectives, step by step, to investigate a root causeby drilling down without direct access to transactional content. The smart chart control is used to provide the chart visualization.
You use this features to deal with analytical data that can be visually represented using charts, without needing to link them to the transactional data set.
If you select a data point or segment from a chart, the smart chart checks the annotation of any semantic object definition for these dimensions and uses it as a base to render the navigation links. For example,
Cost Center dimension
<Annotations xmlns=http://docs.oasis-open.org/odata/ns/edm Target=”Emp_Line_Item.Item/Cost_Center”> <Annotation Term=”com.sap.vocabularies.Common.v1.SemanticObject” String=”CostCenter”/> </Annotations>
In the preceding example, the smart charts retrieve all the navigation parameters for which
you have an authorization and that are defined for the CostCenter
semantic object. The selected chart and filter context is passed to the target
application through the navigation context.
Choose Details on the toolbar, to view navigation links that define actions associated with semantic objects.
You can perform several chart level operations on the toolbar. The Settings option on the chart toolbar enables you to include additional filters on the chart, or to change:
Any action that you define in the Actions property of the chart
annotation (DataFieldForAction or
DataFieldForIntentBasedNavigation), is displayed as an
additional button on the chart toolbar (when
determining=false).
To correctly integrate your app extension coding with SAP Fiori elements, use only the extensionAPI of SAP Fiori elements. For more information, see Using the extensionAPI.
Determining Button
You can configure the smart chart toolbar to contain action buttons defined with
annotations com.sap.vocabularies.UI.v1.DataFieldForAction and
com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation.
Choosing DataFieldForAction executes the back-end function import
as identified by the Action property. When you choose
DataFieldForIntentBasedNavigation, the appropriate SAP Fiori
app is launched. The determining buttons for the chart are found in the footer bar
and the chart buttons are ordered before the table
buttons.
<PropertyValue Property="Actions">
<Collection>
<Record Type="UI.DataFieldForAction">
<PropertyValue Property="Label" String="Copy"/>
<PropertyValue Property="Action" String="CZ_EASILINEITEMS_SADL_CDS.CZ_EASILINEITEMS_SADLType/Copy"/>
<PropertyValue Property="InvocationGrouping" EnumMember="UI.OperationGroupingType/Isolated"/>
<PropertyValue Property="Determining" Bool="true"/>
</Record>
<Record Type="UI.DataFieldForIntentBasedNavigation">
<PropertyValue Property="Label" String="Manage Products (STTA)"/>
<PropertyValue Property="SemanticObject" String="EPMProduct"/>
<PropertyValue Property="Action" String="manage_st"/>
<PropertyValue Property="Determining" Bool="true"/>
</Record>
</Collection>
</PropertyValue>With the click of a button, the associated:
DataFieldForAction annotation handles the action as
defined. The user application has to ensure that this points to the
fully qualified action or function.
DataFieldForIntentBasedNavigation annotation launches
the SAP Fiori applications as specified in the action. If the action is
configured to accept context, then the selected chart and filter context
is passed to the target application through the navigation context.
<PropertyValue Property="Actions">
<Collection>
<Record Type="UI.DataFieldForAction">
<PropertyValue Property="Label" String="Copy"/>
<PropertyValue Property="Action" String="CZ_EASILINEITEMS_SADL_CDS.CZ_EASILINEITEMS_SADLType/Copy"/>
</Record>
<Record Type="UI.DataFieldForIntentBasedNavigation">
<PropertyValue Property="Label" String="Manage Products (STTA)"/>
<PropertyValue Property="SemanticObject" String="EPMProduct"/>
<PropertyValue Property="Action" String="manage_st"/>
</Record>
</Collection>
</PropertyValue>You can make data labels visible in smart charts and KPI cards.
To do this, set the showDataLabel property to
True in the manifest settings. The default value is
False.
"pages": [{
"entitySet": "SEPMRA_C_ALP_SlsOrdItemCubeALPResults",
"component": {
"name": "sap.suite.ui.generic.template.AnalyticalListPage",
"list": true,
"settings": {
"chartSettings": {
"showDataLabel": true
},
