Page 1 of 1

Relations not rendering with Java

Posted: Wed Jan 21, 2026 10:54 am
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

Re: Relations not rendering with Java

Posted: Fri Jan 23, 2026 3:01 pm
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 16 times