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
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
2
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...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Software Development on the SAP HANA Platform
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

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

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon