DHTMLX。如何从数据库查询列表单位?

DHTMLX。如何从数据库查询列表单位?,dhtmlx,dhtmlx-scheduler,Dhtmlx,Dhtmlx Scheduler,现在,我从数据库中获取列表单位: var sections = scheduler.serverList("type"); scheduler.createUnitsView({ name:"unit", property:"type", list:sections }); $list = new OptionsConnector($res, $dbtyp

现在,我从数据库中获取列表单位:

    var sections = scheduler.serverList("type");
          scheduler.createUnitsView({
             name:"unit",
             property:"type",
             list:sections
          }); 
       $list = new OptionsConnector($res, $dbtype);
$list->render_table("doctors","id","id(value),first_name(first_name),last_name(last_name),middle_name(middle_name),spec(spec),image(image)");
$scheduler = new schedulerConnector($res, $dbtype);
$scheduler->set_options("type", $list);
但我想从数据库中查询一下。不呈现数据库中的所有值,只呈现“选择******”的结果
可能吗?渲染sql?感谢您的支持,您可以使用render\u sql方法:

$list = new OptionsConnector($res, $dbtype);
$list->render_sql(
   "SELECT * FROM doctors WHERE someColumn > " .$list->sql->escape("someValue") . " AND anotherColumn < ". $list->sql->escape("anotherValue"),
   "id",
   "id(value),first_name(first_name),last_name(last_name),middle_name(middle_name),spec(spec),image(image)"
);

$scheduler = new schedulerConnector($res, $dbtype);
$scheduler->set_options("type", $list);
$list=新选项连接器($res,$dbtype);
$list->render\u sql(
“从中选择*,其中someColumn>”$list->sql->escape(“someValue”)”和另一列<”$list->sql->escape(“另一个值”),
“身份证”,
id(值)、名(名)、姓(名)、中名(名)、规格(规格)、图像(图像)
);
$scheduler=newschedulerconnector($res,$dbtype);
$scheduler->set_选项(“类型”,$list);
第一个参数采用sql查询,其余参数与render_table中的相同。 还要注意的是,连接器不支持参数化查询,但是如果需要在查询中插入请求值,可以使用$connector->sql->escape方法