Sybase 2 Barcode Reader User Manual


 
Editing XML templates
394 DataWindow .NET
Controls
Adding a DataWindow control reference opens a dialog box containing a list
of the columns, computed fields, report controls, and text controls in the
document.
Control references can also be added to empty attribute values or element
contents using drag-and-drop from the Control List view. Column references
can also be added using drag-and-drop from the Column Specifications view.
Drag-and-drop cannot replace
You cannot drag-and-drop an item on top of another item to replace it. For
example, if you want to replace one control reference with another control
reference, or with a DataWindow expression, you first need to delete the
control reference you want to replace.
DataWindow expressions
Adding a DataWindow expression opens the Modify Expression dialog box.
This enables you to create references to columns from the data source of the
DataWindow object. It also enables the calling of global functions. One use of
this feature is to return a fragment of XML to embed, providing another level
of dynamic XML generation.
Using Date and
DateTime with strings
If you use a control reference or a DataWindow expression that does not
include a string to represent Date and DateTime columns in a template, the
XML output conforms to ISO 8601 date and time formats. For example,
consider a date that displays as
12/27/2004 in the DataWindow object, using
the display format
mm/dd/yyyy. If the export template does not use an
expression that includes a string, the date is exported to XML as
2004-12-27.
However, if the export template uses an expression that combines a column
with a Date or DateTime datatype with a string, the entire expression is
exported as a string and the regional settings in the Windows registry are used
to format the date and time.
Using the previous example, if the short date format in the registry is
MM/dd/yy, and the DataWindow expression is: "Start Date is " +
start_date
, the XML output is Start Date is 12/27/04.