Skip to Content

is it possible to import external libraries to xsjs or xsjslib files?

Jun 08, 2017 at 07:35 PM


avatar image
Former Member

I'm new to xsjs and xsjslib and my task seems to involve using xsjs files and possibly xsjslib files too. Here is the app I'm building: A user enters some inputs on the front end, clicks a button and a job gets scheduled to run later in the day. The job is to take those inputs, make a call to a calculation view which will retrieve some data and store it as an excel file. My problem is that based on all the examples I've seen I have to use an xsjs file that the xsjob can call. But from my very little experience with xsjs there are many limitations to what I can do with it. For one, I can't find a way to import external libraries. In an SAPUI5 app I can have a controller and at the top I can define the dependencies like: sap.ui.define(['path/to/library/', function(library){ ...}

How can I do something like this with an xsjs or xsjslib file so I can import my excel library?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

G B Jun 09, 2017 at 04:58 AM
10 |10000 characters needed characters left characters exceeded