OpenWGA 7.11 - TMLScript reference

Method :

addFile(document, attachmentname)

On object ZipStream
Usage Add a file or attachment to the zip stream.

Variant 1:

file (WGAFile | FILE):

The file object (eigther a WGAFile object or a object) to put (copy) into the stream.

Variant 2:

document (WGDocument | TMLContext)

The document to search for the given file.

attachmentname (String)

The name of the attachment to be added to the zip stream.

Return value The ZipStream for further chaining
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events