我正在使用jqGrid,在编辑/添加功能上我希望在其中一个字段中有一个下拉列表.
如果我使用setSelect函数,这是有效的:
$grid->setSelect("title", "SELECT DISTINCT name,name as TestingName FROM template", true, true, false, array(""=>"All"));
如何将参数传递给我的查询?我试过这些:
1-“SELECT DISTINCT name,name as TestingName FROM template tempid =?”
2-“SELECT DISTINCT name,name as TestingName FROM template tempid = $rowid”
3-“SELECT DISTINCT name,name as TestingName FROM template where tempid =”. $ROWID
具有以下功能:
if(isset ($_REQUEST["tempid"]))
$rowid = jqGridUtils::Strip($_REQUEST["tempid"]);
else
$rowid = "";