Allow expression in report's sub-report expression

Description

Currently the Expression for the Sub-report invocation in a JasperSoft report must be a constant - eg "Letterhead.jrxml" - although JasperSoft Reports do allow a real expression such as $F{OpenVPMS.location.letterhead.target.subreport}

At present using such an expression results in an error message like:
“There is no sub-report named: new String($F{OpenVPMS.location.letterhead.target.subreport}==null? "Letterhead.jrxml":$F{OpenVPMS.location.letterhead.target.subreport})
This is needed by report: Invoice-VP.jrxml”

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Gething

Labels

None

Components

Fix versions

Affects versions

1.9

Priority

Minor
Configure