代码之家  ›  专栏  ›  技术社区  ›  Nicolas Raoul

如何在Documentum 7.1中创建“choice”属性

  •  1
  • Nicolas Raoul  · 技术社区  · 6 年前

    在我的Documentum对象类型中,我想创建一个“direction”属性,其值可以是“north”、“south”、“east”、“west”。

    因此,在“Documentum Administrator”工具中,在“对象类型”的“属性”对话框中,我选择了“属性”选项卡,按了“添加”按钮,出现了以下屏幕:

    enter image description here

    如您所见,它只允许我选择Boolean、String、Integer、ID、Time、Double。

    使用“String”类型听起来很疯狂,因为除了字符串大小之外,它没有其他可用的验证。或者,是否有一种隐藏的方法来添加某种条件值帮助,从而将选择限制为固定列表?

    注意:我不能使用Documentum Composer。

    1 回复  |  直到 6 年前
        1
  •  2
  •   cgrim    6 年前

    您可以通过以下DQL查询来完成:

    ALTER TYPE test_type ADD direction STRING(16) (SET "label_text"='My selectable attribute')
    ALTER TYPE test_type MODIFY attribute1 (VALUE ASSISTANCE IS LIST ('north', 'south', 'east', 'west') IS COMPLETE) PUBLISH
    

    可以在 工具 -> DQL编辑器 .