using XML dataset problem

Stimulsoft Reports.JS discussion
Post Reply
Florian_ITLabs
Posts: 4
Joined: Fri Feb 16, 2018 7:21 am

using XML dataset problem

Post 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`);
Attachments
report.mrt
(195.23 KiB) Downloaded 91 times
Florian_ITLabs
Posts: 4
Joined: Fri Feb 16, 2018 7:21 am

Re: using XML dataset problem

Post by Florian_ITLabs »

Any idea? Or do you need more information?
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: using XML dataset problem

Post by Lech Kulikowski »

Hello,

Please send us test data for your report.

Also, please check the last release build.

Thank you.
Florian_ITLabs
Posts: 4
Joined: Fri Feb 16, 2018 7:21 am

Re: using XML dataset problem

Post 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
Attachments
Outbound_1729417.zip
(2.09 KiB) Downloaded 135 times
Florian_ITLabs
Posts: 4
Joined: Fri Feb 16, 2018 7:21 am

Re: using XML dataset problem

Post by Florian_ITLabs »

This Problem is very serious for us and we are waiting for your answer for our production release.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: using XML dataset problem

Post by Lech Kulikowski »

Hello,

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

Thank you.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: using XML dataset problem

Post 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.
Post Reply