Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Software Development on the SAP HANA Platform
  • Table Of Contents Toc
  • Feedback & Rating feedback
Software Development on the SAP HANA Platform

Software Development on the SAP HANA Platform

By : Mark Walker
3.3 (3)
close
close
Software Development on the SAP HANA Platform

Software Development on the SAP HANA Platform

3.3 (3)
By: Mark Walker

Overview of this book

Table of Contents (19 chapters)
close
close
Software Development on the SAP HANA Platform
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Hello, World!


Let's start our development by creating the standard first application used in every language under the sun; the Hello, World application. This will allow us to ensure that our development environment is functioning correctly, that our application descriptor files (.xsapp and .xsaccess) are correct and that the XS Engine is working correctly.

To do this, we'll create a new file in our application, called hello.xsjs. This file will be our application's main file, the one we'll call from our browser.

An XS Engine program is written in JavaScript, and the program generates HTML for the browser. Our program will be very simple—it will just tell the browser that we're sending some HTML, and then output the Hello, World text.

Our program code is therefore as follows:

$.response.contentType = "text/html";
$.response.setBody( "Hello, World !");

Type this code into the hello.xsjs file, then commit and activate it on the server.

The $ annotation at the start of each line tells the XS Engine...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY