Record 的速度很慢

CodeCharge Studio 2.x, 3.x, 4.x, 5.x
回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Record 的速度很慢

文章 yehlu »

1.用了AJAX 會載入較慢

2.裡面有數百個項次的List BOX

解決方案
把項次加上條件,新增時全部空的,或只列出預設的資料
如下修改程式碼

function clsRecordcust($RelativePath, & $Parent)


if($_GET["cust_id"]=="" or !isset($_GET["cust_id"])){
$this->local_id->DataSource->wp->Criterion[1] = "( city_id = 0 )";
}else{
$this->local_id->DataSource->wp->Criterion[1] = "( city_id = ".$_GET["city_id"]." )";
}
回覆文章

回到「CodeCharge Studio」