Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By kleung
#828709
HI,

I could not find the function getGridField() in PM 3.2.1 or later.
Can I be advised the alternative function of getGridField()?

Many Thanks.

cheers,
Karl
User avatar
By kirkwg
#828748
Hi Karl,

To access a field in a grid using JavaScript, please refer to the following reference URL page :
https://wiki.processmaker.com/3.2/JavaScript_Functions_and_Methods/Grid

e.g.
$("#productsGrid").getControl(1, 2).css("border","red solid 1px"); //set css for the field at row 1 col 2
$("#gridId").getValue(1, 2); //get the value of the field in grid row 1 col 2,
$("#grid_machinePurchase").setValue(amount, 1, 1);

Alternatively, when using Backbone Object in Dynaform , try e.g.
getFieldById("grid_machinePurchase").getControl(1,1).css("font-size", "150%");

Try to describe more on what you want to solve in case you are still not clear, thanks!!

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]