''CreateFileProcess'' Element

Top  Previous  Next

CreateFileProcess element is used to create text based files and output them to different types of targets. It is designed to be used in Process Management framework.

Place the element into a ProcessBlock or ProcessForm Element and set its properties.

CreateFileProcess_pe

Properties

File Sections | Top (Accepts MScript)

The text that takes part at the top of the output file. The text defined here will be output only once before starting with the process records.

File Sections | Body (Accepts MScript)

The text that will construct the body of the output file. The text defined here will be output for each process record.

File Sections | Bottom (Accepts MScript)

The text that takes part at the bottom of the output file. The text defined here will be output only once after finished with the process records.

Content Type (Accepts MScript)

The type of the file content. You can select one of the predefined types or type in a new one. The predefined types:

text/html
text/plain
text/xml
application/x-msexcel

 

Encoding:

In addition to the content type, the encoding of the file to be created can also be given in this property as follows:

 
text/xml; encoding=utf-8

 

Output To

This property defines where the created file is output. The choices are:

1.Browser. The created file is sent to the browser as the response to the request.
2.File. The file created on disk
3.Process Block Field. File is created as a temporary file and its name is stored in a process block field.
4.Pool Variable. File is created as a temporary file and its name is stored in a pool variable.
 

See Temporary File Usage

Output Name (Accepts MScript)

The value of this property should be specified according to the value of the Output To property. The value should be a file name if the value of the Output To property is 2, a process block field name if it is 3 and a pool variable name if it is 4.

If the value is a file name then it can be defined absolute or relative to the root of the web application.

See Absolute or Relative Names.