Search…
⌃K
Links

appendTempFile

To add content to a temporary file on the Ninox server
This function adds the given content to a temporary file, which will be accessed via a given link created by createTempFile().
The respective file must have been created already and still exist when executed.
Use this function in combination with createTempFile() to render large or long-running exports.
The function can be executed only on the client. Learn more about execution context

Syntax

appendTempFile(link, string)
appendTempFile(string, string)

Return

void

Examples

appendTempFile(myURL, myContent) To add content to a temporary file on the Ninox server.
1
let linebreak := "
2
";
3
let header := "CustomerID,Revenue" + linebreak;
4
URL := do as server
5
createTempFile(header, "export.csv")
6
end;
7
do as server
8
for customer in select Customers do
9
let line := customer.Id + "," + customer.Revenue + linebreak;
10
appendTempFile(URL, line)
11
end
12
end
Result: First, a temporary CSV file is created on the server and the link to the file is saved in the URL field. Then data from the Customers table will be added line by line to the file.

See also

createTempFile, which creates a temporary file on the Ninox server.
Last modified 1mo ago