Questions and discussion about using ProcessMaker: user interface, running cases & functionality
User avatar
By ashkufaraz
#812515
Hi

I have a trigger with this code
Code: Select all
@=grid[1]=["t1"=>"t1","t2"=>"t2"];
@=grid2[1]=["t3"=>"t3","t4"=>"t4"];
Image

When textarea is before file upload in grid1, text area content does not change with trigger
When textarea is after file upload in grid2, text area content changes with trigger.(version 3.2.1)
version 3.1.3 is correct...
Attachments
(21.94 KiB) Downloaded 258 times
Last edited by ashkufaraz on Wed Dec 13, 2017 12:55 am, edited 2 times in total.
User avatar
By ashkufaraz
#812578
QAcarlos.camacho (manager) :
This issue that you report already was resolved and the fix will be available in the next version of ProcessMaker (ProcessMaker 3.2.2, it will be ready in few months). I will keep you updated about this.
User avatar
By programerboy
#812579
Hi,
You must change code1 to code2 in "workflow/public_html/lib/pmdynaform/build/js/PMDynaform.js" and your problem is solved.
code1:
Code: Select all
setRowData: function (row, rowData) {
            var i,
                cell,
                auxValue,
                type,
                dataType,
                viewMode,
                realIndex = 0;
            if (typeof row === "number") {
                row = this.gridtable[row];
            }
            if (_.isArray(row) && _.isArray(rowData)) {
                for (i = 0; i < row.length; i += 1) {
                    cell = row[i];
                    if (cell.model.get('type') !== 'multipleFile') {
                        viewMode = cell.model.get("mode");
                        if (rowData[realIndex] !== null && rowData[realIndex] !== undefined) {
                            if (viewMode === "edit" || viewMode === "disabled") {
                                this._setDataToEditMode(cell, rowData[realIndex]);
                            } else {
                                this._setDataToViewMode(cell, rowData[realIndex]);
                            }
                        }
                        realIndex += 1;
                    }

                }
            }
            return this;
        },
code2:
Code: Select all
setRowData: function (row, rowData) {
            var i,
                cell,
                auxValue,
                type,
                dataType,
                viewMode,
                realIndex = 0;
            if (typeof row === "number") {
                row = this.gridtable[row];
            }
            if (_.isArray(row) && _.isArray(rowData)) {
                for (i = 0; i < row.length; i += 1) {
                    cell = row[i];
                    if (cell.model.get('type') !== 'multipleFile') {
                        viewMode = cell.model.get("mode");
                        if (rowData[realIndex] !== null && rowData[realIndex] !== undefined) {
                            if (viewMode === "edit" || viewMode === "disabled") {
                                this._setDataToEditMode(cell, rowData[realIndex]);
                            } else {
                                this._setDataToViewMode(cell, rowData[realIndex]);
                            }
                        }
                        //realIndex += 1;
                    }
					realIndex += 1;
                }
            }
            return this;
        },
Most Demanding OST to PST Converter

Use the greatest and most affordable PST file conv[…]

Before planning, the factors that must be consider[…]

If you want to seamlessly and hassle-free conversi[…]

Well many students have no idea how to write a goo[…]