Infohub JS API
Loading...
Searching...
No Matches
ServiceRender Class Reference

Description

PDF, XLS Reports.

Public Member Functions

 constructor (ctx)
async createPdfFromHtmlTemplate (parent_sid, request_data)
async createXlsFromTree (parent_sid, request_data)

Function Documentation

◆ constructor()

constructor ( ctx)
Parameters
{Context}ctx

◆ createPdfFromHtmlTemplate()

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.

Parameters
{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
Returns
{RestResponse} Response of REST call
Since
10.12.2025, ar

◆ createXlsFromTree()

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.

Parameters
{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
Returns
{RestResponse} Response of REST call
Since
08.2025, jh