根据文档属性下拉选择显示垂直垂直线

问题描述

我面临的问题很容易理解,但很难解决(至少对我而言)。我还没有发现很多与此相关的信息。

Probem:我想包括直线来表示的线图上的28的固定值,只有当文件属性具有“x”的选择,否则,如果被选择的文档属性“Y”,此行应该从移动从28到10,如果文档属性选择的值为“ z”,则直线应消失(NULL)。

顺便说一句,这是相同的文档属性(下拉选择称为$ {firstStartORAssignedTime}。

在此先感谢您没有代码!

解决方法

在折线图的“属性”>“直线和曲线”>中添加“水平线”作为自定义表达式,并使用以下命令:

case  when "${firstStartORAssignedTime}"='x' then 28
when "${firstStartORAssignedTime}"='y' then 10
else null end

$ {DocumentPropertyName}

将从文档属性中返回TEXT值,因此需要将其包装在“”中以用于表达式。

DocumentProperty(“ DocumentPropertyName”)

将返回文档属性的值(即:string,integer ect)

所以您也可以使用:

case  when DocumentProperty("firstStartORAssignedTime")='x' then 28 
when DocumentProperty("firstStartORAssignedTime")='y' then 10
else null end

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...