Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将列添加到Alfresco池任务表_Alfresco - Fatal编程技术网

将列添加到Alfresco池任务表

将列添加到Alfresco池任务表,alfresco,Alfresco,是否可以更改的列布局(添加/删除/重新排序) Alfresco中的池任务表?是的,您应该修改YUI数据表。Ie,看看文件share/components/task-list.js 有一个columnDefs变量,它显示以下列: columnDefinitions: [ { key: "id", sortable: false, formatter: this.bind(this.renderCellIcons), width:

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

是的,您应该修改YUI数据表。Ie,看看文件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”中获得的JSON“

我在任何地方都看不到task-list.js或workflow.lib.ftl。我用的是Alfresco 2.1,实际上是Alfresco 3.11,对不起,我记得3.0上有一些东西。但是,我认为合并的任务是一种定制的东西?不管怎样,您在共享/组件/工作流中有什么内容吗?一些前端JS?我没有使用共享。我一直在搜索所有的前端代码,但是在任何地方都找不到这个定义。嗯,除了显示特定类型的属性之外,我从来没有做过很多浏览器自定义。您是否尝试过一些相关关键字的代码范围grep,或者类似的技术?