如果我的 JasperReport 报告显示来自 SQL 查询的数据,如下所示:
SELECT
"invoices"."invoice_id",
"invoices"."name",
"invoices"."contact_id",
"relationship_contacts"."name",
FROM "invoices"
LEFT JOIN "contacts" AS "relationship_contacts" ON ("invoices"."contact_id" = "relationship_contacts"."contact_id")
我应该如何在 JRDesignExpression.setText() 中指定 invoices.name 和 relationship_contacts.name?这似乎无效:
$F{relationship_contacts.name}