Passing XML to the Report with Flex
Passing XML to the Report with Flex
I'm receiving a XML of back-end like this:
[Bindable]
private var myResult:XML;
[Bindable]
private var scores:XMLList = new XMLList();
myResult = new XML(event.result);
for each(var s:XML in myResult.Row){
scores.addItem(s);
}
How send this list to the Report?
[Bindable]
private var myResult:XML;
[Bindable]
private var scores:XMLList = new XMLList();
myResult = new XML(event.result);
for each(var s:XML in myResult.Row){
scores.addItem(s);
}
How send this list to the Report?
Passing XML to the Report with Flex
Hello,
Please try the following code:
Thank you.
Please try the following code:
Code: Select all
var report: StiReport = new StiReport();
...
report.regData("ReportData", "ReportData", myResult);
report.dictionary.synchronize(); // For designer's data dictionary
Passing XML to the Report with Flex
thank you,
with this procedure can call the report!
with this procedure can call the report!
Passing XML to the Report with Flex
Hello,
Thank you for letting us know.
Thank you for letting us know.
Passing XML to the Report with Flex
I'm with other problem.
if i send the xml like this:
xmldata = new XML(event.result);
_report.regDataXML('Row', 'Row', xmldata);
_report.dictionary.synchronize();
_report.showDialog();
the report show only one register.
if i send the xml like this:
xmldata = new XML(event.result);
_report.regDataXML('Row', 'Row', xmldata);
_report.dictionary.synchronize();
_report.showDialog();
the report show only one register.
Passing XML to the Report with Flex
Hello,
Please add the following line to clear the previously registered data:
_report.dataStore.clear();
_report.regDataXML('Row', 'Row', xmldata);
Thank you.
Please add the following line to clear the previously registered data:
_report.dataStore.clear();
_report.regDataXML('Row', 'Row', xmldata);
Thank you.
Passing XML to the Report with Flex
Andrew,
Thanks for help!
But,
I continue with problem, i'm starting believe that this problem occurs when i get the XML because when i define this XML like dataprovider of some component this also shows only one register.
To resolved this have that convert the XMl to XMLList but this method :
_report.regDataXML('Row', 'Row', xmldata);
No accept XMLList.
How I will resolve this?
Thanks for help!
But,
I continue with problem, i'm starting believe that this problem occurs when i get the XML because when i define this XML like dataprovider of some component this also shows only one register.
To resolved this have that convert the XMl to XMLList but this method :
_report.regDataXML('Row', 'Row', xmldata);
No accept XMLList.
How I will resolve this?
Passing XML to the Report with Flex
Hello,
Please explain the problem in more detail. The report.regData() method registers the entire table, but not row by one. If you register another table with the same name, it will not work correctly.
Thank you.
Please explain the problem in more detail. The report.regData() method registers the entire table, but not row by one. If you register another table with the same name, it will not work correctly.
Thank you.