Estoy usando jqGrid, en la función editar/agregar Quiero tener una lista desplegable en uno de estos campos.jqGrid setSeleccione la función con la consulta parametrizada
Esto funciona si uso la función setSelect como esto:
$grid->setSelect("title", "SELECT DISTINCT name,name as TestingName FROM template", true, true, false, array(""=>"All"));
¿Cómo puedo pasar parámetros a mi consulta? Probé siguientes:
1- "SELECT DISTINCT name,name as TestingName FROM template where tempid = ?"
2- "SELECT DISTINCT name,name as TestingName FROM template where tempid = $rowid"
3- "SELECT DISTINCT name,name as TestingName FROM template where tempid = ". $rowid
ninguna de las anteriores trabajó mientras que tener:
if(isset ($_REQUEST["tempid"]))
$rowid = jqGridUtils::Strip($_REQUEST["tempid"]);
else
$rowid = "";
no encuentro ninguna documentación sobre el método '-> setSelect' de la clase jqgrid php en http://www.trirand.com/blog/phpjqgrid/docs/jqGrid/jqGrid.html#sec-method- resumen ¿puede proporcionar más información? –
http://www.trirand.net/documentation/php/index.htm -> section tutorials-> drop downs – Grace