| Auszug |
|---|
|
Nuclos uploading templates: remove parameters, subreport, JRNuclosDataSource, REPORT_DATA_SOURCE, getDataSource, query text. |
Language: Deutsch · English
Uploading templates to Nuclos
Prepare finished Jasper templates for Nuclos – remove test parameters and wire subreports the Nuclos way.
| Status |
|---|
| colour | Blue |
|---|
| title | Application developer |
|---|
|
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
Make the template Nuclos-compliant
Once the design is finished and tested, the form/report is imported into Nuclos. Beforehand the data source should be transferred to Nuclos.
Remove test artifacts
Remove everything only needed for test/design in the designer:
- all self-created parameters,
- all subreports,
- the content of the Query Text property.
The same applies to the subreport template (e.g. Auftragspositionen.jrxml).
Create a Nuclos-compliant subreport
- Create a parameter for the subreport (enter the type manually:
net.sf.jasperreports.engine.JasperReport). - Insert via the palette Subreport → Just create the subreport element.
- Set the properties:
| Property | Value |
|---|
| Subreport Expression | $P{Sub_Auftragspositionen} |
| Expression Class | net.sf.jasperreports.engine.JasperReport |
| Connection type | Use a datasource expression |
| Datasource Expression | ((org.nuclos.server.report.api.JRNuclosDataSource)$P{REPORT_DATA_SOURCE}).getDataSource("<Nuclos data source>") |
| Tipp |
|---|
|
The form is loaded via Configuration → Report → Form or Report. |
Related pages
Transferring a data source to Nuclos
Data source.
Open →