I can do the following successfully:
Code: Select all
var xml: XMLNode = StiTypeConverter.byteArrayToXml(bytes);
var tempReport: StiReport = new StiReport();
tempReport.loadReportFromXML(xml);
tempReport.dictionary.databases[0].pathData="file:///Users/brett/html/season_box_score2.xml";
viewerFx.assignReport(tempReport);
Is there a way to load a report from XML, and then replace just the XML.
In the MRT created w/ the designer there is one DataConnection (XML) w/ Alias and Name="ReportConnection".
I tried this (which does not work):
Code: Select all
var tempReport: StiReport = new StiReport();
tempReport.loadReportFromXML(xml);
var dataXML:XML=getSomeXMLData();
tempReport.regDataXML("ReportConnection","ReportConnection",dataXML);
tempReport.dictionary.synchronize();
viewerFx.assignReport(tempReport);