Code Monkey home page Code Monkey logo

cap-analytics-sandbox's Introduction

Analytics sandbox

Sandbox for trying out the analytics tools of SAP HANA DB Cloud. Main source of information is this tutorial.

Steps to get started

  • Using the SAP Business Application Studio, select New project from template and choose CAP Project
  • In the features section, check the following:
    • CI/CD Pipeline Integration
    • Configuration for SAP HANA Deployment
    • MTA based SAP Business Technology Platform Deployment
    • Basic Sample Files
  • Generate the project and commit the result.
  • Open the SAP HANA PROJECTS drawer below the file tree explorer.
  • Under Database Connections, find your target container and press the green "bind" icon to the right
  • In the options that appear at the top, select Bind to an HDI container and then Create new service instance. Give it a name and await creation.
  • There will now be a .env file created in the db folder, copy this out into the top level of this repo.
  • Press the deploy button (rocket) on the top level of the project you are targeting. So the level above Database Connections.
  • At this point you should be able to create .hdbcalculationview files in your db folder.

Steps to generate proxy views

After creating and deploying a .hdbcalculationview you need to create a proxy entity in the cap application to expose the view. This can be done by doing the following:

  • Run the hana-cli createModule command in the root folder.
  • From this command there is a .env file generated in the db folder, move it to the root level of this repo.
  • Run hana-cli inspectView -v <your-view-name> -o cds
  • Take the resulting view that is printed to the console and add it to your root cds schema (Not under a namespace).
  • Expose the view inside your service.
  • Redeploy to the database using the HANA Projects drawer in the file explorer pane.
  • The calculationview should now be accessible from the api.

cap-analytics-sandbox's People

Watchers

 avatar

Forkers

octavius-dante

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.