Relations not rendering with Java

Stimulsoft Reports.JAVA discussion
Post Reply
deepa.g
Posts: 1
Joined: Wed Jan 21, 2026 10:29 am

Relations not rendering with Java

Post by deepa.g »

I have a relation that involves 2 datasources. This is what I'm doing in my java class:

Code: Select all


//read mrt file as reportStream
StiReport report = StiSerializeManager.deserializeReport(reportStream);
report.setCacheAllData(true);

StiDataSource dataSourceA = report.dictionary.dataSources.get("dsAliquot_Experiment_Aliquot");
StiDataSource dataSourceS = report.dictionary.dataSources.get("ds4sample_Experiment_Sample");

//read from 2 json responses
report.regJsonData(dataSourceA.getName(), jsonData_ali.getBytes(StandardCharsets.UTF_8), true); 
report.regJsonData(dataSourceS.getName(), jsonData_sample.getBytes(StandardCharsets.UTF_8), true); 

report.dictionary.synchronize();
report.render();

//define outputStream
StiExportManager.exportPdf(report, outputStream);

The pdf generated does not render the columns from the relation (name:alisam). Says:

WARNING: Parser error: Field, method, or property is not found: 'alisam'
InputExpression: dsAliquot_Experiment_Aliquot.alisam.Name position: 40
Attachments
sample_ds.json
(13.19 KiB) Downloaded 5 times
aliquot_ds.json
(9.48 KiB) Downloaded 6 times
multiple_datasource_report.pdf
(100.09 KiB) Downloaded 5 times
AllReportExample.java.zip
(1.97 KiB) Downloaded 5 times
177.mrt
(19.08 KiB) Downloaded 13 times
Vadim
Posts: 440
Joined: Tue Apr 23, 2013 11:23 am

Re: Relations not rendering with Java

Post by Vadim »

Hello

Will be fixed from 2026.1.3 version
Also in report file please manually move "Relations" section after "DataSources"
Screenshot 2026-01-23 180002.png
Screenshot 2026-01-23 180002.png (28.96 KiB) Viewed 12 times
Post Reply