Does anyone have step by step directions, or point me to a place that does, on how to create the datawindow object that will be loaded with an XML file?
So I figured out how to import an XML file. If I import without a template, I will get an error if an xml element is not present in the file.
This can be due to a null value in the element. However, if I use a template, it will import all elements whether they have nulls or not.
I created a template and assigned it to the datawindow object. The command button script sets the datawindow trans object to SQLCA and the following:
dw_1.Modify("DataWindow.Import.XML.UseTemplate = 't_performance_report' ")
dw_1.ImportFile(XML!,"Perf Report 16.18.xml")
When the report is run, nothing is retrieved and the trace file looks like this.
/*---------------------------------------------------*/
/* 11/26/2018 11:51 */
/*---------------------------------------------------*/
CREATING SAX PARSER.
USING XML IMPORT TEMPLATE: t_performance_report
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.