AddComponentFromResourcesReport

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > JamioPlug > JamioPlug Document Automation >

AddComponentFromResourcesReport

Plug

PlugDocumentAutomation

 

Method

AddComponentFromResourcesReport

 

Description

Creates a report from one or more resources using one or more templates taken from Document components and creates a new Document component. Makes a check-out of the target Document if there isn’t a working copy or takes the current working copy in charge.

Optionally delegates the Document to a new Identity or to the previous one.

 

Input

Name

Description

Type

Optional

serverAddress

Server address for an external Domain (or "" for the current Domain)

String

Y

token

The session token (for the current session in the current Domain may be null or empty)

String

Y

resources

Input resources for report. Each element can be a reference to a resource or a dataset containing fields; each key corresponds to name assigned in templates

DataSet

 

templateDocument

Document resource containing template file components. Supported template types:

• doc

• dot

• docx

• dotx

• odt

• ott

• rtf

Reference

 

outputFormat

The format for output report (same format of the first template if not specified). Supported output formats:

• doc

• docx

• odt

• pdf

• rtf

• txt

String

Y

targetDocument

Target Document for new component (template Document if not specified)

Reference

Y

componentName

Name of component to create. If not specified: report.<outputFormat>

String

Y

newCurrentOwner

New current owner Identity reference (if not specified, the current owner before execution if present)

Reference

Y

Output

Name

Description

Type

Optional

returnValue

Reference to the FileComponent created

Reference