Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 5115

xsjs sql query fails

$
0
0

Hi there,

 

I am currently playing around with the HANA Development Studio in Eclipse.

 

I created my own Databasetable in my own Scheme:

ZHemp.ZHempXSProject::ZHempMaterial

 

Now I am trying to query data from that table in a xsjs file:

 

$.response.contentType = "text/html";

var output = "Hello" <br><br>\n";

 

var conn = $.hdb.getConnection();

conn.executeQuery('SELECT "MaterialNumber" FROM "ZHemp"."ZHempXSProject::ZHempMaterial"');

 

 

$.response.setBody(output);

 

When I comment out the executeQuery line, everything works fine and I get an html page with the content "Hello".

But when I run it as it is, I only get a "500 - Internal Server Error".

 

Any Idea?

 

Thanks,

Bodo


Viewing all articles
Browse latest Browse all 5115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>