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.

6. Add a file called .xsaccess (no name, just a file extension), and copy the following code:<br />

{<br />

}<br />

"exposed" : true,<br />

"authentication" :<br />

[<br />

{ "method" : "Basic" }<br />

]<br />

This code exposes the contents via HTTP, and requires you to log in with your <strong>SAP</strong> <strong>HANA</strong> credentials to<br />

access the file.<br />

7. Right-click on the project, and select Team Commit . This adds your four new files<br />

(.xsjs, .xsapp, .xsaccess and .project) to the repository, though only you can see the files and no one<br />

can run them.<br />

8. Right-click on the project, and select Team Activate . This publishes your work and you can now test it.<br />

To access your JavaScript code, open a browser and enter the URL:<br />

http://myServer:8000/mycompany/myorg/testing/MyFirstSourceFile.xsjs<br />

Note:<br />

● Change the server name to your server.<br />

● The port is 80 plus two digits for your instance. If your instance is 00, then the port is 8000.<br />

You should get the following:<br />

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

Setting Up Your Application<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!