The Export/Import Template view for XML
386 DataWindow .NET
Creating new default
templates
The New Default menu item creates a template with the same contents as the
New menu item, as well as a flat structure of child elements of the Detail Start
element. A child element is created for each DataWindow column name, in the
order in which the columns appear in the
SELECT statement, with the
exception of blob and computed columns. The default tag for the element is the
column’s name.
If the names of the column and the control are the same, the content of the child
element displays with a control reference icon. If there is no control name that
matches the column name, the content of the child element displays using the
DataWindow expression icon. For example, consider a DataWindow object in
which the
dept_id column is used as a retrieval argument and does not display:
The SQL syntax is:
SELECT "employee"."dept_id",
"employee"."emp_lname",
"employee"."emp_fname",
"employee"."salary"
FROM "employee"
WHERE employee.dept_id = :deptnum
ORDER BY "employee"."emp_lname" ASC
In the default template, dept_id uses the DataWindow expression icon. All the
other columns used the column control reference icon.