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!!

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]