The smart templates control the navigation to and from the list report and the object page. The various navigation aspects are listed in the Navigation section of the SAP Fiori Design Guidelines.
You can either specify a URL for external navigation targets or by associating a semantic object (= intent-based navigation). In the case of URL-based navigation, there are two annotation options that you can use: You can either specify the absolute URL explicitly, or use a path reference to a property using the annotation DataFieldWithUrl as follows:
<Record Type="UI.DataFieldWithUrl"> <PropertyValue Property="Value" Path="URL"/> <PropertyValue Property="Url" Path=""/> </Record>
In the case of URL-based navigation, an m.Link control is rendered for the property on the list report or object page (if in Display mode).
If you associate a semantic object annotation to any property, this establishes Intent-Based Navigation.
You want to define an ambiguous navigation target. This means that, at run-time, a list of potential targets is offered to the user.
<Annotations xmlns="http://docs.oasis-open.org/odata/ns/edm" Target="ZFAR_CUSTOMER_LINE_ITEMS2_SRV.Item/CostCenter"> <Annotation Term="com.sap.vocabularies.Common.v1.SemanticObject" String="CostCenter"/> </Annotations>
Navigation may also be required after the execution of a regular FunctionImport which is not tagged as DataFieldForIntentBasedNavigation. The behavior after the execution of the function is controlled by the application as follows: If the FunctionImport returns multiplicity 1 and ReturnType=EntityType + EntitySet, the smart template navigates to the instance that is returned by the function import.
Navigation to the app uses deep linking. For more information, see Navigation in the SAP Fiori Design Guidelines and go to the Deep Links section.
This type of navigation requires the SAP Fiori launchpad. For a stand-alone app, you must change the links in the annotations as required.
For the SAP Fiori launchpad, the configuration steps for Intent-Based Navigation are also relevant, as it is the same mechanism.