Tracing import – PB Docs 2017

Tracing import

When you import data from XML with or without a template, you
can create a trace log to verify that the import process worked
correctly. The trace log shows whether a template was used and if so
which template, and it shows which elements and rows were
imported.

To create a trace log, select the Trace XML Import check box on
in the Data Import page in the Properties view and specify the name
and location of the log file in the Trace File Name box. If you do not
specify a name for the trace file, PowerBuilder generates a trace file
with the name pbxmtrc.log in the current directory.

You can also use the Import.XML.Trace and Import.XML.TraceFile
DataWindow object properties.

If you use ImportClipboard or ImportStringan import method to
import the data, you must specify XML! as the importtype argument. For
example:

If you omit the importtype argument, the trace file is not
created. You do not need to specify the importtype argument if you use
ImportFile.

Example: default import

The following trace log shows a default import of the department
table in the PB Demo database:

Example: template import

The following trace log shows a template import of the
department table. The template used is named t_1. Notice that the
DataWindow column dept_id is referenced twice, as both an attribute
and a column. The second occurrence is ignored for the template
import, as described in Restrictions.
The Detail Start element has an implicit attribute named __pbband
which is also ignored.


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