cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Ajax in Xsjs hanaDB

Former Member
0 Kudos

Hello Sap UI5 Peoples

I am Developing one One Application on Sap Ui5 using XSJS Services in HANADB, in one of my Services i need to call AJAX and third party API using it and using Type : GET i want to get the Data from Third Party API and insert it into one of my HANADB table

but i am getting this Error " ReferenceError: jQuery is not defined "

Do i need to Import some Jquery Libs?

Accepted Solutions (1)

Accepted Solutions (1)

anton_levin
Employee
Employee
0 Kudos

Hello Shardul,

official documentation might hep you (Outbound API - http is what you need to make HTTP calls from XS):

Using the Server-Side JavaScript APIs - SAP HANA Developer Guide for SAP HANA Web-Based Development ...

and

JSDoc: Namespace: http

Regards,

Anton

Former Member
0 Kudos

Thank You, Anton

that Would Help

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

Shardul,

just a quick clarification -

jQuery is a client side library.. while your requirement says you are using (server side JS)  XSJS - so yes follow up the outbound connectivity call as suggested per Anton.

alternatively, if you are on SP11+ (XS Adavanced - you could also use nodejs)