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.

In the <strong>SAP</strong> <strong>HANA</strong> studio you can create a project at any package level, which enables a fine level of control of the<br />

artifacts that may (or may not) be exposed by sharing the project.<br />

4.2.4 Creating a Project for <strong>SAP</strong> <strong>HANA</strong> XS<br />

Before you can start the application-development workflow, you must create a project, which you use to group all<br />

your application-related artifacts.<br />

Projects group together all the artifacts you need for a specific part of your application-development environment.<br />

Depending on the type of project you are working on, the project can include build tools, too. A basic project<br />

contains folders and files. More advanced projects are used for builds, version management, sharing, and the<br />

organization and maintenance of resources.<br />

To create a new project in the <strong>SAP</strong> <strong>HANA</strong> studio, perform the following steps:<br />

1. Open the <strong>SAP</strong> <strong>HANA</strong> studio.<br />

2. Open the <strong>SAP</strong> <strong>HANA</strong> Development perspective.<br />

3. Choose the Project Explorer view.<br />

4. Right-click the white space in the Project Explorer view and choose New > Project… in the popup menu.<br />

The type of project you create determines the details you have to provide in the New Project dialog that<br />

appears.<br />

a) Enter a project name that describes what the project is about, for example: XS_JavaScript, XS_OData<br />

or XS_<strong>SAP</strong>UI5.<br />

b) Click Finish to create the new project.<br />

The new project is displayed in the Project Explorer view.<br />

Note: The contents of the project depend on the type of project you create. For example, a general<br />

project is empty immediately after creation; a JavaScript project contains all the resource files<br />

associated with a JavaScript project, such as libraries and build-environment artifacts.<br />

4.2.5 Sharing a Project for <strong>SAP</strong> <strong>HANA</strong> XS<br />

Before you can start working on files associated with a new project, you must share the project; sharing a project<br />

enables you to track and synchronize local changes with the repository.<br />

When you share a project, you set up a connection to the <strong>SAP</strong> <strong>HANA</strong> repository associated with a particular <strong>SAP</strong><br />

<strong>HANA</strong> instance. Sharing the project enables you to ensure that changes you make to project-related files are<br />

visible to other team members and applications. Other developers can import a shared project and work on the<br />

same files.<br />

Note: Use the Project Explorer view in the <strong>SAP</strong> <strong>HANA</strong> studio to check if a project is shared. In addition to<br />

the project name, a shared project displays the <strong>SAP</strong> <strong>HANA</strong> system ID of the repository where the shared<br />

artifacts are located, a <strong>SAP</strong> <strong>HANA</strong> user name, and the path to the repository package to which the shared<br />

project is assigned, for example. "XSJS_myproject [SID (dbusername,<br />

'sap.hana.xs.app1')].<br />

To share a project in the <strong>SAP</strong> <strong>HANA</strong> studio, perform the following steps:<br />

1. Open the <strong>SAP</strong> <strong>HANA</strong> studio<br />

2. Open the <strong>SAP</strong> <strong>HANA</strong> Development perspective.<br />

40<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!