Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#825402
You already figured out how to modify the document list and add another column.

Probably the easiest way to do it is to create a PM Table which has the fields APP_DOC_UID, DOC_VERSION, EXTRA_INFO and create records in the PM Table for each file. Then change the PM source code to lookup the APP_DOC_UID and DOC_VERSION in order to display the EXTRA_INFO field in the additional column.
#825413
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
document.png (33.27 KiB) Viewed 4349 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 all
var 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
Last edited by jemiris on Fri Aug 09, 2019 3:53 am, edited 1 time in total.
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]