Giter Site home page Giter Site logo

products-sample's Introduction

products

This is a complex sample containing the following aspects:

  • hdbdd - defines the model with associations
  • hdbsequence - auto increment primary key for Item entity
  • hdbti - predefined content
  • hdbtablefunction - purchased items by current customer of specified item type
  • analyticprivilege - protects a calculationview by checking Username to be the current user
  • calculationview
    • 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 navigation
  • xsjs services
    • one for creating and retrieving complete orders with items
    • one querying a calculationview
  • protected resources secured with application privileges
    • xsprivileges - defines two application privileges
    • xsaccess - restricts access to Administrators
    • xsjs - simple service to check access
    • xsodata - exposing one calculation view
  • xsjob - regularly loads data from a specified destination
  • webapp - UI5 user interface
  • PRODUCTS_DU.tgz - DU exported from HANA 2 containing the original XS Classic code

Deployment guide

  1. Follow the deployment guide for XSK on Kyma
    1. Use the provided xs-security.json which includes an additional role collection
  2. Create a SAP BTP Destination service instance and bind it to XSK with prefix destination_

Preparation

  1. Grant the analytic privilege (samples/products/views/items_ordered_total_ap.analyticprivilege) to the HANA Cloud user for XSK
  2. Modify/Create record in samples/products/data/Products_Customers.csv where Username is your username used to login to XSK
  3. Assign yourself the XSKProductsAdmin role from SAP BTP Cockpit
  4. Create a destination in SAP BTP Cockpit by importing the file products.properties

products-sample's People

Contributors

dpanayotov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.