例如,我在资源库中就有这样的字符串:
some.string.1=String 1
some.string.2=String 2
some.string.3=String 3
In JasperReports I have to print these strings based on some other parameter $P{t}. I can do it this way - put such expression into field:
($P{t} == 1 ????? $R{some.string.1} : ($P{t} == 2 ????? $R{some.string.2} : $R{some.string.3}))
是否有办法以这种方式执行:
$R{some.string.$P{t}}
?????
谢谢