No, My questions are different here
I have added column in Processmaker source code. Can i add the same code from my plugin
My problem is that I would like to add the grid column from my plugin to the document manager
I would like to know how to append the two columns with that table via My plugin. Becuause it has been done via Ext Js Frame work. To add the headers below i have attached an image
document.png (33.27 KiB) Viewed 4347 times
I know that it's in the <intalled-directory>\workflow\engine\templates\cases\casesDocuments.js as you said before in the fourm. But this looks like an object it just render by having column name and id. So i would do the same from my plugin. For exmpale in casesDocuement.js page:
Code: Select allvar cm = new Ext.grid.ColumnModel([{
id: "gridcm", //id assigned so we can apply custom css (e.g. -> .x-grid-col-topic b { color:#333 })
header: _("ID_NAME"),
dataIndex: "name",
width: 200,
renderer: renderFileName,
sortable: true,
groupable: true,
editor: new Ext.form.TextField({
allowBlank: false
}),
css: "white-space:normal;"
}, {
header: _("ID_VERSION"),
dataIndex: "docVersion",
width: 100,
align: "center",
renderer: renderVersion
}, /* expander, */ {
header: _("ID_MODIFIED"),
dataIndex: "appDocCreateDate",
width: 100,
sortable: true,
renderer: renderModifiedDate
}, {
header: _("ID_OWNER"),
dataIndex: "owner",
width: 100,
sortable: false,
groupable: true,
renderer: renderFullName
//sortable: false
}
Just defining the header attribute and data index it automatically renders.
So how can I append my column header when
My plugin enables. Is that possible
Could you please give me an idea