How to call the sub folder's tempalte via API?
-
Re: Organizing templates in folders under data
How to via API invoke the tempate of the sub folder? how to translate the template paramaters?
example:
templates/
|---subFolders/
------ foo1
------ foo2
---foo1
---foo2How to call the templates/subFolers/foo1 in the API?
-
https://jsreport.net/learn/api
In the most typical case, you just need to specify template name (or shortid) and input data. The template name property needs to be a unique template name. In the case you use multiple folders it's recommended to pass the full path instead of the name. For example
{ "template": { "name": "/myfolder/mytemplate" }" "data": {} }