下拉式選單要條件出現不同的值
發表於 : 2008-10-15 14:16:43
加一個 Before Execute Select 的 Event
然後自己寫判斷式改掉原來的SQL 語法
if(XXX){
$pop_set->pop_type_id->DataSource->SQL = "SELECT * \n" .
"FROM pop_type where pop_type_id = 1";
}else{
$pop_set->pop_type_id->DataSource->SQL = "SELECT * \n" .
"FROM pop_type ";
}
然後自己寫判斷式改掉原來的SQL 語法
if(XXX){
$pop_set->pop_type_id->DataSource->SQL = "SELECT * \n" .
"FROM pop_type where pop_type_id = 1";
}else{
$pop_set->pop_type_id->DataSource->SQL = "SELECT * \n" .
"FROM pop_type ";
}