Chapter 10. Advanced Features

Table of Contents
Nested Templates
Record manipulation using TCL
Sorting

Nested Templates

In ZAP it is possible to, from one ZAP template, call another ZAP template and display the result in the first template. This can be an advantage in some circumstances where a search is required that is impossible with a standard ZAP template.

This is done with the TCL function callZap. The function takes two argument; first the path to the ZAP template to call and second the variables to send to the ZAP template being called. The variables should be formatted the way parameters are formatted in a URL ie. name=value and separated with "&". A "?" in the beginning of the variable string is however not necessary.

All the output from the ZAP template being called will then be displayed where the callZap function is being called.