- Mon Jul 29, 2019 9:58 am
#825653
Hi,
I would like to set the country control in a grid to the country of the user using the process. I have the following trigger that runs before the dynaform:
$aUser = PMFInformationUser(@@USER_LOGGED);
@@Country = $aUser['country'];
Now I create a text control with the value of @@country in the dynaform where the grid variable is, and I try to set the control in the grid as follows:
I would like to set the country control in a grid to the country of the user using the process. I have the following trigger that runs before the dynaform:
$aUser = PMFInformationUser(@@USER_LOGGED);
@@Country = $aUser['country'];
Now I create a text control with the value of @@country in the dynaform where the grid variable is, and I try to set the control in the grid as follows:
Code: Select all
This however does not set the control in the grid when running a case. Please could someone help. Also I would like this control to be set even when a new row is added.var grid=$("#branchGrid");
var rows=grid.getNumberRows();
for (var i=1; i <= rows; i++)
{
var sVal = $("#Country").getValue();
alert(sVal);
grid.setValue(sVal, i, 2);
alert(grid.getValue(i, 2));
}
$("#Country").hide()