如何在列表中指定元素名称?

时间:2016-10-18 08:42:50

标签: java alfresco alfresco-share

以下是模型和数据列表定义:

<!-- DataLists-->
<type name="sc:contractType">
    <title>Options</title>
    <parent>dl:dataListItem</parent>
    <properties>
        <property name="sc:type">
            <title>Type</title>
            <type>d:text</type>
        </property>
    </properties>
</type>

<!-- workflow model-->
<type name="sc:startProcesstask">
    <parent>bpm:startTask</parent>
    <properties>
        <property name="sc:helloName">
            <type>d:text</type>
            <mandatory>true</mandatory>
            <multiple>false</multiple>
        </property>
    </properties>
   <associations>
       <child-association name="sc:requestCategory"">
           <target>
              <class>sc:contractType</class>
              <mandatory>true</mandatory>
              <many>false</many>
            </target>
        </child-association>
    </associations>
</type>

当我编辑模型并尝试选择数据列表项值时,我必须:

  1. 浏览整个存储库以查找数据列表项。
  2. 在项目列表中查看UUID值而不是type属性。
  3. 有没有办法告诉露天在浏览列表项时显示UUID的type属性?

1 个答案:

答案 0 :(得分:2)

问题是用于选择该子关联的目标的默认表单控件不足以满足您的需要。因此,您需要提供另一种自定义表单控件。 docs使用一个非常简单的示例显示了如何执行此操作。