0

Alfresco でプールされたタスク テーブルの列レイアウトを変更 (追加/削除/並べ替え) することはできますか?

4

1 に答える 1

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(",");

つまり、その Web スクリプトを変更するか、必要な追加データを見つける必要もあります。詳細については、ファイル「alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/workflow/workflow.lib.ftl」から取得した JSON をご覧ください。

于 2013-03-28T10:51:25.700 に答える