The include tag is used to include a dynamic subtemplate into the current template. Subtemplates are evaluated in the same fashion as any other dynamic template; the developer may associate data sources and other properties to them.
<include src="subtemplate.adp" attribute=value ...>
<include src="subtemplate.adp" source_id="@source_id@" ...>To pass a datasource, e.g.
users
, by reference, use
this notation:
<include src="subtemplate.adp" &persons="users" ...>This is particularly useful for passing onerow and multirow data sourced. Note that in this case, if the subtemplate modifies the value this will affect the includer. When the datasource in the included page has the same name (
&users="users"
), you
can use the shorthand &="users"
.