Page 1 of 1

Report with more than one data object

Posted: Fri Oct 06, 2023 5:02 pm
by burru
Hello,
I've created a report with 2 object "data from DataViews", and I'm trying to render it.
The first one is working fine, while the second still renders no data at all

The code i used is the following:

Code: Select all

report.RegData("RESPONSABILE","RESPONSABILE", responsabileStampa);
report.RegData("PRATICA", "PRATICA", documentoStampa);
await report.Dictionary.ConnectAsync();
await report.Dictionary.SynchronizeAsync();
return StiAngularReportResponse.ResponseAsPdf(report);
Where responsabileStampa and documentoStampa are correctly populated (if I inspect them before the report rendering).

On the compiled report though, only data from "documentoStampa" are rendered.

I've made some try switching position of the two regData and even switching SynchronyzeAsync and ConnectAsync but the result is always the same.

Am I missing something?

Re: Report with more than one data object

Posted: Fri Oct 06, 2023 11:11 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: Report with more than one data object

Posted: Mon Oct 09, 2023 12:39 pm
by burru
Sorry, it's the first time for me, how can I send you a sample?
And do you mean a WORKING sample? That's a bit hard, with all the db and stuff.
Are the .mrt file and the entire function enough?

Re: Report with more than one data object

Posted: Tue Oct 10, 2023 7:24 pm
by Lech Kulikowski
Hello,

You can prepare and send us a sample project for analysis.

Or you can download our samples, add your code that will reproduce the issue and send us for analysis
https://github.com/stimulsoft/Samples-R ... ET-Angular

Thank you.

Re: Report with more than one data object

Posted: Mon Oct 23, 2023 3:21 pm
by burru
Hello again.

So, after struggling with this a little bit i found that the code works correctly, while the problem was in the .mrt where I was using two types of datasource: one was a StiBusinessObjectSource and the second (not working) was a StiDataViewSource.
In the end opening the .mrt with a text editor made the problem clear !

Re: Report with more than one data object

Posted: Tue Oct 24, 2023 8:15 am
by Lech Kulikowski
Hello,

Thank you for the information.