You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

基于VTL与Excel的自定义报表生成问题求助(含Word模板报错)

问题:Cameo Systems Modeler结合Teamwork Cloud生成变更报表故障

背景与需求

我是系统工程师,正在用Cameo Systems Modeler推进项目,需要生成捕获Teamwork Cloud每次提交间变更的自定义报表,计划通过Cameo Report Wizard结合VTL+Excel实现。

现有问题

  • Excel中的VTL代码能运行但无数据填充,已确认命令写法正确,但这类场景的参考文档极少。
  • 多次重写VTL代码并调整其在Excel中的位置,结果要么是空文档,要么直接生成失败(曾出现仅生成表头、无内容的情况)。

更新记录(2025年9月18日)

转而尝试用Word文档实现,却出现文件结束错误,Word中使用的VTL代码如下:

Artifact Change Tracker Report Template
Model: $report.name
Generated on: $report.date
Section 1: Blocks
#foreach($artifact in $report.findElementsByType("Block"))
------------------------------------------------------------
Block: $artifact.name  ($artifact.id)
Modified? $artifact.isModified
Modified By: $artifact.modifiedBy
Modified Date: $artifact.modifiedOn

#foreach($change in $artifact.changes)
    Property: $change.property
    Old Value: $change.oldValue
    New Value: $change.newValue
#end

Traced Requirements:
#foreach($req in $artifact.clientRelations)
    - $req.name ($req.id)
#end
------------------------------------------------------------
#end

内容的提问来源于stack exchange,提问作者Missile_guy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 08:12:06