RAP Part-1 Developing Read-only List Reporting Apps
RAP Part-1 Developing Read-only List Reporting Apps
Basically, in this chapter we will develop a RAP Applica on which is having Read-Only features.
1.we will learn how to develop an OData service including Mul ple read-only features.
2.We will also learn How to Consume this OData service by FIORI Element Applica ons or by any
Other OData client.
Apply and enhance your knowledge about how to create and expand and OData service.
Implement Associa on Between Two CDS views.
Expose New CDS views for an Exis ng OData service.
Use @EndUser. Text Annota ons.
Develop value Helps for Input Fields.
Implement search Capabili es.
1 ZI_Airport_R
ZI_Carrier
Text Associa on N N
ZI_Flight_R
Describe The above figure: -
The entry point of Flight scenario is - ZI_Connec on_R and It manages data for flight
connec on.
ZI_Flight_R – This view is linked with connec on view by Associa on and it is basically used
to display Flight informa on.
ZI_Carrier – This view is basically used to display the full name of Airline.
ZI_Airport_R – This view is basically used for Value help provider for the Airport elements in
the Connec on CDS view.
Descrip on: -
This CDS is the Entry point of the Flight Reference App. It provides the element for the connec on
by searching this connec on user can find a suitable flight for his journey.
Source Code: -
2. Associa on with ZI_Carrier – This view used to provide a Airline name as text for Airline id(carrid).
3.Annota on: - @ObjectModel.text. associa on: '_Carrier’, this Annota on is used the Add the Text
informa on as Airline name for Airline Id’Carrid’.
Descrip on: - This CDS view provides detailed informa on about the Flights. It is displayed as a 2nd
Facet in the UI, which means we only need a limited number of UI Annota ons.
Source code: -
This view is used as Text Provider view for the main views of the App. It Contains the text for the
element ‘Carrid’
Source Code: -
This Annota on provides this field value as text informa on to main CDS view ‘Connec on’.
Airport CDS view - ZI_Airport
This CDS view is used as Value help provider for the Connec on CDS view. It Contains detailed
informa on about the available Airports that can be used for the value help.
Source code: -
This Metadata extension used to Design the UI for Airline Reference Applica on.
Source Code: -
Use Case for Metadata Extension: -
the type name – Connec on defines single Connec on and Type name plural – Connec ons defines
for mul ple Connec ons.
Display Header informa on in Header Object page using UI Facet.
Header Page: -
Line-Item Details: -
Tool p Annota on: -
This annota on provides a Tool p informa on about a column when mouse hovers on it.
@Search.defaultSearchElement: true
Note: - To use this annota on, you have to add a Annota on - @Search.searchable: true , on the top
of your metadata extension or your Main CDS view.
@Search.fuzzinessThreshold: 0.7
this fuzziness threshold needs minimum 70% matches for the input value.
Annota on used for value help for a field: -
Possible Values: -
Metadata extension for Flight details: -
Service defini on: -
Basically, Service defini on need to create for expose the CDS views as OData service.
Service Bindings: -
Create service binding on the top of Service defini on and publish it.
Applica on
Header Page: -
Header Object Page: -
Thank You……………………….
Part 2 is coming soon where I will explain how to create a Transac onal applica on (CRUD).
----------------xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx…………………………………………………………