Skip to Content
author's profile photo Former Member
Former Member

Calling Ajax in Xsjs hanaDB

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 13, 2016 at 11:58 AM

    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 Workbench - SAP Libr…


    JSDoc: Namespace: http



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 13, 2016 at 01:50 PM


    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)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.