Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单元格上对数据集进行过滤,报错 #2060

Closed
2636134561 opened this issue Oct 12, 2023 · 6 comments
Closed

单元格上对数据集进行过滤,报错 #2060

2636134561 opened this issue Oct 12, 2023 · 6 comments

Comments

@2636134561
Copy link

版本号:V1.6.2
问题描述:sql数据集返回的数据是多条,要取出对应的单条数据的某个字段的值,渲染到对应的单元格中,目前采用的是在单元格上写case表达式,但是系统报错(如下),请问能否在单元格上对数据源结果集进行过滤?怎么配置?
错误日志&截图:

image
5%D8VP28HK`~~ZR9)X OPV7

重现步骤:

数据源sql:
SELECT
guid,gate_id,direction,time_part,METER_READB,METER_READE,MONTH_QTY,YEAR_QTY
FROM
S_SE_GRID_QTY
WHERE
TO_CHAR(SE_MONTH,'yyyy-mm') = '${THEMONTH}'
AND
PLANT_ID = '0105000020'

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供报表设计SQL脚本或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@2636134561
Copy link
Author

补充:
预览效果:image

数据源预览效果:
TT%OM5(@()Q89JLYH(WI`{7

@lvdandan16
Copy link
Collaborator

数据里边有空数据吗?

@2636134561
Copy link
Author

数据里边有空数据吗?

没有,如上图,数据源预览有6条数据,没有空数据

@2636134561
Copy link
Author

开发分析可能是,当结果集为多条数据时时,积木不支持在单元格上对数据集进行过滤,然后取出对应的单条数据,渲染到对应行中
UXHILR7LHGE0 IJ~4EQI`TO
请确认一下积木是否能支持在单元格上对有多条数据的结果集进行过滤

@lvdandan16
Copy link
Collaborator

收录 ws

@1298191366
Copy link

已修复,待新版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants