28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}<br />

]<br />

6. Save and activate your changes and additions.<br />

4.5 Tutorial: My First <strong>SAP</strong> <strong>HANA</strong> Application<br />

This tutorial shows you how <strong>SAP</strong> <strong>HANA</strong> development is done in the <strong>SAP</strong> <strong>HANA</strong> studio, including setting up a<br />

project, and developing a simple JavaScript file to extract data from the database.<br />

Though extremely simple, the tutorial shows the development process for programming all types of applications.<br />

The project creates server-side JavaScript code that retrieves data by executing SQL in the database, and then<br />

returns the data to the client, which in this case is a browser. The project can be viewed as adhering to the model-<br />

view-controller architecture:<br />

● Model: You have (dummy) data in the database, which we can extract via SQL.<br />

● Controller: You have JavaScript code that controls the extraction of the data and delivers it to the view.<br />

● View: You have a simple browser that calls the JavaScript code and simply displays the data.<br />

4.5.1 Open the Development Perspective<br />

Before you do anything, you have to start the <strong>SAP</strong> <strong>HANA</strong> studio and open the <strong>SAP</strong> <strong>HANA</strong> Development<br />

perspective.<br />

1. Open the <strong>SAP</strong> <strong>HANA</strong> studio. The first screen you see is the Welcome screen, with quick links to the main <strong>SAP</strong><br />

<strong>HANA</strong> perspectives and to the documentation.<br />

62<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up Your Application

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!