![]() |
Infohub JS API
|
PDF, XLS Reports.
Public Member Functions | |
| constructor (ctx) | |
| async | createPdfFromHtmlTemplate (parent_sid, request_data) |
| async | createXlsFromTree (parent_sid, request_data) |
| constructor | ( | ctx | ) |
| {Context} | ctx |
| async createPdfFromHtmlTemplate | ( | parent_sid, | |
| request_data ) |
Create PDF file from html template and save it in infohub under given shortid of parent.
Uses endpoint: https://.SERVICE_RENDER./{scope}/pdf/nodes/{node}
Get access token and scope from infohub context.
| {string} | parent_sid Create the new document as child of this node |
| {object} | request_data Sources and configuration, see documentation of endpoint for more details |
| async createXlsFromTree | ( | parent_sid, | |
| request_data ) |
Create XLS file from node tree.
Uses endpoint: https://.SERVICE_RENDER./{scope}/xls/nodes/{node}/tree
Get access token and scope from infohub context.
| {string} | parent_sid Create the new document as child of this node |
| {object} | request_data Sources and configuration, see documentation of endpoint for more details |