Oops, I have the following code:
// jqGrid //
$grid->('onSelectRow', "fnHistoricoPessoa");
// fim jqGrid//
// função para onSelectRow//
function fnHistoricoPessoa(){
var kwGrid = $("#kwGrid").jqGrid('getGridParam', 'selrow');
if(kwGrid != null)
{
var ret = $("#kwGrid").jqGrid('getRowData',kwGrid);
$("#grid_historico").setGridParam({url:"/admin/pessoas/listagem_historico.json?id_familia=1",page:1});
$("#grid_historico").trigger("reloadGrid");
}
}
With this code I do in jqGrid the option of when to select a row, it fill another grid with the information I want and they are: id_familia = 1
only this 1, I botei manual only test the grid, that is it searches the database for id_familia = 1
and plays on the screen, but I do not want all screens to be id_familia = 1
, I want it to be id_familia = id da familia que o usuario está buscando
.
How do I retrieve the id that the user is searching for?