Search code examples
sapui5

Call XSJS Service from SAPUI5 Application in webide


I am trying to make an ajax call to XSJS service. With the new webide, we need to use the destination to make a call to the desired service. I have already setup a destination for my HANA System and exposed an XSJS service. What's the process to call the service from my controller file (in SAPUI5 App)?

Note: I have added the destination created in cockpit to my neo-app.json file as below:

 {
        "path": "/TestDest",
        "target": {
            "type": "destination",
            "name": "TestDest"
        },
        "description": "Test Destination"
    }

Solution

  • I would use JQuery.ajax as it is stated here