简体   繁体   English

iReport / jasperReports如果节点存在问题,我如何检入xml数据源

[英]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 我是iReport的新手,我的问题是在表达式编辑器中,如何构建用于检查xml节点的表达式
extincts and base on that print string 灭绝并基于该打印字符串
i have this expression that returns me null in the result : 我有这个表达式返回结果为null:

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

the root_customer does not exsict in the xml root_customer不存在于xml中

Try something along the following lines in your expression. 按照表达式中的以下内容尝试一些操作。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM