Page 1 of 1

using XML dataset problem

Posted: Sat Apr 10, 2021 8:26 am
by Florian_ITLabs
HI,

I have a poblem using XML as a dataset for my report. I attached the report.mrt, xml (I cant updload xml since the board wont let me), xsd and the generated pdf files here. If I design the report in the desinger everything works fine, the data is loaded and displayed in the preview.

If I generate the report via code, the dataset is loaded - I can see some data but most data is missing - especially data within relations is not being displayed. I have read this post viewtopic.php?t=55732 and tried all the suggestions but its not working.

If I create the datasource via the designer I dont have to enter a xsd file - but if I do this via code, I get an error: "Cannot read property 'dataType' of null"

This is my code:

Code: Select all

const stimulsoftReport = new Stimulsoft.Report.StiReport();
    const dataSet = new Stimulsoft.System.Data.DataSet('prescription');
    dataSet.readXmlSchemaFile(`${__dirname}/schema.xsd`);
    // dataSet.readXmlFile(`${__dirname}/xml.xml`);
    dataSet.readXml(data);
    stimulsoftReport.dictionary.databases.clear();
    stimulsoftReport.regData('prescription', 'prescription', dataSet);
    stimulsoftReport.dictionary.synchronize();
    stimulsoftReport.loadFile(`${__dirname}/report.mrt`);

Re: using XML dataset problem

Posted: Mon Apr 12, 2021 1:41 pm
by Florian_ITLabs
Any idea? Or do you need more information?

Re: using XML dataset problem

Posted: Mon Apr 12, 2021 9:27 pm
by Lech Kulikowski
Hello,

Please send us test data for your report.

Also, please check the last release build.

Thank you.

Re: using XML dataset problem

Posted: Tue Apr 13, 2021 8:48 am
by Florian_ITLabs
Please find attached a zip file with the test data and xsd - the board wont let me updload xml files directly.

Im using the npm package - stimulsoft-reports-js 2021.2.3

Re: using XML dataset problem

Posted: Wed Apr 14, 2021 12:38 pm
by Florian_ITLabs
This Problem is very serious for us and we are waiting for your answer for our production release.

Re: using XML dataset problem

Posted: Fri Apr 16, 2021 1:12 pm
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: using XML dataset problem

Posted: Fri Apr 16, 2021 1:12 pm
by Lech Kulikowski
Hello,

> This Problem is very serious for us and we are waiting for your answer for our production release.

In that case, you can send your request on support@stimulsoft.com

Thank you.