OpenWGA 7.7 - TMLScript reference

WGA
Object:

WGA.TempFile(filename)

Description

Creates a TempFile object

This object is available since version 7.7.2

Retrieval WGA.TempFile(filename)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Inherits from object WGA.File()
Properties and methods
Name Purpose
addToDownloads() Adds the file to the temporary download area for this http session.
append(text, [encoding]) inherited Appends the content to the referenced file.
asString([encoding]) inherited Returns the content of the referenced file as String
asXMLDocument([encoding]) inherited Returns the content of the referenced file as DOM4J XML document.
copy(InputStream)
copy(WGDocument | TMLContext, attachmentname)
inherited
Copies filedata from an imput steam or content attachment to the file.
createZipStream() inherited Creates a ZipStream object to generate zip files.
file inherited Gets (or sets) the wrapped java.io.File object
listFiles([filter]) inherited List all files in the referenced folder optional filtered by a filter function.
write(text | XMLDocument, [encoding]) inherited Writes the given content to the file.