将列添加到Alfresco池化任务表

时间:2013-03-27 21:12:10

标签: alfresco

是否可以更改列的布局(添加/删除/重新排序) Alfresco中的Pooled Tasks表?

1 个答案:

答案 0 :(得分:0)

是的,您应该修改YUI数据表。即,看一下文件share / components / task-list.js。

有一个columnDefs变量,它显示了列:

 columnDefinitions:
               [
                  { key: "id", sortable: false, formatter: this.bind(this.renderCellIcons), width: 40 },
                  { key: "title", sortable: false, formatter: this.bind(this.renderCellTaskInfo) },
                  { key: "name", sortable: false, formatter: this.bind(this.renderCellActions), width: 200 }
               ],

现在,您可以在那里添加或删除列。

当然,YUI从此URL获取数据源中的数据:

var url = Alfresco.constants.PROXY_URI + "api/task-instances?authority=" + encodeURIComponent(Alfresco.constants.USERNAME) +
               "&properties=" + ["bpm_priority", "bpm_status", "bpm_dueDate", "bpm_description"].join(",") +
               "&exclude=" + this.options.hiddenTaskTypes.join(",");

这意味着您还需要修改该webscript或找到所需的额外数据。有关更多信息,请查看从文件" alfresco / WEB-INF / classes / alfresco / templates / webscripts / org / alfresco / repository / workflow / workflow.lib.ftl&#34获得的JSON。