This is a complex sample containing the following aspects:
hdbdd
- defines the model with associationshdbsequence
- auto increment primary key forItem
entityhdbti
- predefined contenthdbtablefunction
- purchased items by current customer of specified item typeanalyticprivilege
- protects acalculationview
by checkingUsername
to be the current usercalculationview
- one general purpose for everyone (total items ordered of item type)
- one based on the
hdbtablefunction
- one protected by an
analyticprivilege
to return the total ordered items
xsodata
- exposes some of the entities, has event handlers and navigationxsjs
services- one for creating and retrieving complete orders with items
- one querying a
calculationview
protected
resources secured with application privilegesxsprivileges
- defines two application privilegesxsaccess
- restricts access to Administratorsxsjs
- simple service to check accessxsodata
- exposing one calculation view
xsjob
- regularly loads data from a specified destinationwebapp
-UI5
user interfacePRODUCTS_DU.tgz
- DU exported from HANA 2 containing the original XS Classic code
- Follow the deployment guide for XSK on Kyma
- Use the provided xs-security.json which includes an additional role collection
- Create a SAP BTP Destination service instance and bind it to XSK with prefix
destination_
- Grant the analytic privilege (samples/products/views/items_ordered_total_ap.analyticprivilege) to the HANA Cloud user for XSK
- Modify/Create record in samples/products/data/Products_Customers.csv where
Username
is your username used to login to XSK - Assign yourself the
XSKProductsAdmin
role from SAP BTP Cockpit - Create a destination in SAP BTP Cockpit by importing the file
products.properties