开发者

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

开发者 https://www.devze.com 2023-01-09 15:27 出处:网络
i new to iReport , my question is in the expression editor , how can i build expression thatchecks if xml node

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

精彩评论

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

关注公众号