起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5809|回复: 4

[处理中3] 主从报表,添加表头不生效,还导致从报表错位

[复制链接]

92

主题

254

帖子

638

积分

高级会员

Rank: 4

积分
638
QQ
发表于 2020-3-17 10:28:26 | 显示全部楼层 |阅读模式
版本: 小版本号:
数据库: 服务器操作系统: 应用服务器:
客户端操作系统: 浏览器:
报表设计如下图,不添加table-header:true 时显示正常,只是不能分页,添加了之后不但没有在第二页开始显示表头,还导致了从表从第二条记录开始发生错位。
1.png 2.png 3.png

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35880
发表于 2020-3-17 11:07:06 | 显示全部楼层
主从的设置主表为表头目前有缺陷
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

92

主题

254

帖子

638

积分

高级会员

Rank: 4

积分
638
QQ
 楼主| 发表于 2020-3-17 14:48:46 | 显示全部楼层
jishuang 发表于 2020-3-17 11:07
主从的设置主表为表头目前有缺陷

那我通过视图的方式把主从关系合并了,通过group的方式把之前主的部分合到 表头去了,但是报错,当我只group一个字段的时候没事,group多个的时候就不行了。报 报表执行错误:选择节点失败,xpath:dataset('p1_fSupplier_fDeliverer_fPONO_fDeliveryNo_fProjectNo')//fSupplier

控制台错误如下:
[ERROR] 2020-03-17 14:44:04,986 com.justep.report.controller.ReportController - 报表执行失败
选择节点失败,xpath:dataset('p1_fSupplier_fDeliverer_fPONO_fDeliveryNo_fProjectNo')//fSupplier
com.justep.report.exception.ReportServerException: 选择节点失败,xpath:dataset('p1_fSupplier_fDeliverer_fPONO_fDeliveryNo_fProjectNo')//fSupplier
        at com.justep.report.controller.ReportController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.DataController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.controller.InitController.execute(Unknown Source)
        at com.justep.report.controller.GenericControllerChain.execute(Unknown Source)
        at com.justep.report.Servlet.a(Unknown Source)
        at com.justep.report.Servlet.doPost(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)


回复 支持 反对

使用道具 举报

92

主题

254

帖子

638

积分

高级会员

Rank: 4

积分
638
QQ
 楼主| 发表于 2020-3-17 14:49:26 | 显示全部楼层
jishuang 发表于 2020-3-17 11:07
主从的设置主表为表头目前有缺陷


Caused by: java.lang.RuntimeException: 选择节点失败,xpath:dataset('p1_fSupplier_fDeliverer_fPONO_fDeliveryNo_fProjectNo')//fSupplier
        at com.justep.report.TransformContext.a(Unknown Source)
        at com.justep.report.CompiledTable.selectXPathNodes(Unknown Source)
        at com.justep.report.Repeat.compile(Unknown Source)
        at com.justep.report.TableRows.compile(Unknown Source)
        at com.justep.report.Table.transform(Unknown Source)
        at com.justep.report.Content.transform(Unknown Source)
        at com.justep.report.ContentSet.transform(Unknown Source)
        at com.justep.report.Report.a(Unknown Source)
        at com.justep.report.ReportDocument.transform(Unknown Source)
        at com.justep.report.ReportTransformer.transform(Unknown Source)
        at com.justep.report.core.XReportHelper.executeXReport(Unknown Source)
        ... 22 more
Caused by: java.lang.NullPointerException
        at net.sf.saxon.dom4j.NodeWrapper.makeWrapper(NodeWrapper.java:99)
        at net.sf.saxon.dom4j.NodeWrapper.makeWrapper(NodeWrapper.java:62)
        at net.sf.saxon.dom4j.DocumentWrapper.wrap(DocumentWrapper.java:55)
        at com.justep.report.TransformContext.a(Unknown Source)
        ... 33 more
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35880
发表于 2020-3-17 16:08:47 | 显示全部楼层
发一下excel文件
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-3-29 15:16 , Processed in 0.098874 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表