开发者

iReport/jasperReports how can i check in xml data source if node exsicts

i new to iReport , my question is in the expression editor , how can i build expression that checks if xml node

extincts and base on that print string

i have this expression that returns me null in the result :

( $F{root_customer}.isEmpty() ? "Entity name:" :"Customer id:" )

the r开发者_如何转开发oot_customer does not exsict in the xml


Try something along the following lines in your expression.

( $F{root_customer} == null ? "Entity name:" + $F{someField}  
    :"Customer id:" +  + $F{root_customer})
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜