Questions tagged [xsjs]
22 questions
0
votes
1 answer
How to create a procedure in XSJS dynamically in HANA
I have created an application in which I'm calling XSJS file from the browser and in that XSJS file I am calling a normal SQL procedure. In that procedure after some validations I'm calling R procedure. My requirement is to create that R procedure…

vatsal
- 63
- 10
0
votes
1 answer
Signal a procedure and give the control back to procedure in HANA
I am calling a procedure from my xsjs file as follows
try{
var query = oConn.loadProcedure("hello","helloWorld.db::sampleException");
query();
$.response.setBody('OK');
$.response.status = $.net.http.OK;
}
catch(e){
…

abhi5800
- 374
- 1
- 5
- 21
0
votes
1 answer
SAP HANA XSJS Ajax Post - Internal Server Error
I have 2 components in my XS engine.
HTML file
XSJS file
I call below code to get some information from database.
$.ajax({
url: "file.xsjs?ACTION=GET_BUBBLE_CHART_DATA",
type: "POST",
data: JSON.stringify({ d1: "xyxyxyx" }),
contentType:…

AnovaConsultancy
- 106
- 1
- 13
0
votes
2 answers
SAP HANA: not able to call xsjs file in HTML
I had an SAP UI5 application project in which one of the pages is product.html and a xsjs file getProductCat.xsjs.
Now I made some changes in HTMl page from notepad. When I try to open in HANA's web browser the changes are there but it is not able…

mark
- 623
- 3
- 21
- 54
0
votes
2 answers
Convert full LAMP stack Laravel application to SAP Hana
SAP Hana can be used as a substitute database for any sort of application, including a LAMP application on Laravel.
Recently, there appears to have been a push towards moving application code closer to the actual database via XS Engine and XSJS…

Amit Kothari
- 520
- 8
- 23
-1
votes
1 answer
Converting SOAP Response XML to JSON using XSJS
I'm having problems to convert an XML response file to JSON using XSJS, Any help will be appreciated. Thanks!

Angelica
- 29
- 2
-3
votes
1 answer
how to merge similar key values in same keys in javascript
var array = [{
"ADJUSTMENT_TYPE": "AP0001",
"REV_TYPE": "R"
}, {
"ADJUSTMENT_TYPE": "AP0001",
"REV_TYPE": "E"
}, {
"ADJUSTMENT_TYPE": "AP0001",
"REV_TYPE": "N"
}];
I want it to be like this
[{
"ADJUSTMENT_TYPE": "AP0001",
…

Mohan Raj
- 11
- 5