Import.XML.UseTemplate – PB Docs 126

Import.XML.UseTemplate DataWindow object property

Description

Setting that optionally controls the logical structure of
the XML imported from an XML file into a DataWindow object using
the ImportFile method.

Controls

DataWindow objects

Syntax

PowerBuilder dot notation:

Describe and Modify argument:

Parameter

Description

value

(exp) A string specifying
the name of an import template previously saved in the DataWindow
painter for the specified DataWindow object

Usage

This property should be set to specify the logical structure
of the XML imported before you call the ImportFile method
to import data from an XML document. An import template is not required
if the XML document from which data is imported corresponds to the
DataWindow column definition.

If an export template for a DataWindow object exists, it can
be used as an import template. Only the mapping of column names
to element attribute names is used for import. The order of elements
within the template is not significant, because import values are
located by name match and nesting depth within the XML document.
All other information in the template, such as controls and comments,
is ignored.

In the painter

In the Data Import tab in the Properties view for the DataWindow
object, select XML from the Format to Configure list and select a
template from the Use Template list.

Examples

This example sets the name of the current XML import
template used in dw1 to t_import_report.
If t_import_report does not
exist, the current template is not changed.

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x