SQL-Query parameter with API
-
Hi JS-Team
we included jsreport with the api into our application.
Is it possible to set a parameter due api-request and use it in a scipt (SQL-Query)?Thanks!
-
sure, you can pass such parameter for example in options or data property inside request body. Then you can reach it as
function beforeRender(req, res, done) { // req.data.myParam // req.options.myParam }
-
Thanks!
Works well.. :)