有没有一种方法可以为列表中的值设置显示文本? [英] Is there a way to set the display text for the value in list?

查看:80
本文介绍了有没有一种方法可以为列表中的值设置显示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,有一些业务流程。提示用户拒绝或批准某些文档。

For example, there are some business process. The user is prompted to reject or to approve some document.

工作流内容模型的一部分:

Part of the workflow content model:

...
<constraints>
    <constraint type="LIST">
        <parameter name="allowedValues">
            <list>
                <value>Approve</value>
                <value>Reject</value>
            </list>
        </parameter>
    </constraint>
</constraints>
...

而不是批准 / 拒绝我想显示一个不同的文本(国家/地区,带空格等)。但是在脚本中,我想使用相同的 Approve / Reject 值。

Instead of Approve/ Reject I want to display a different text (national, with spaces, etc.). But in scripts I would like to use the same Approve/ Reject values.

有可能吗?

推荐答案

您尝试过吗?

<constraints>
    <constraint type="LIST">
        <parameter name="allowedValues">
            <list>
                <value>Approve|Some Approval label</value>
                <value>Reject|Some Rejection label</value>
            </list>
        </parameter>
    </constraint>
</constraints>

这篇关于有没有一种方法可以为列表中的值设置显示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆