I am using jqGrid in the edit / add function. I want to have a drop down list in one of these fields.
This works if I use the setSelect function as follows:
$grid->setSelect("title", "SELECT DISTINCT name,name as TestingName FROM template", true, true, false, array(""=>"All"));
How to pass parameters to my request? I tried:
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 "SELECT DISTINCT name,name as TestingName FROM template where tempid = ". $rowid
none of the above actions were:
if(isset ($_REQUEST["tempid"])) $rowid = jqGridUtils::Strip($_REQUEST["tempid"]); else $rowid = "";
Grace source share