How to custom Grid SQL?

CodeCharge Studio 2.x, 3.x, 4.x, 5.x
回覆文章
shanbw
文章: 9
註冊時間: 2004-11-28 22:28:52

How to custom Grid SQL?

文章 shanbw »

Hi,
After i use Grid Builder,the display order result is not ideal.
So i want to use SQL statement e.g.order by to achieve my project.
How to modify?
In before select event?
How to deliver the parameter?

thanks.
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

文章 yehlu »

You Can use Data Source ->Build Query
學學安
文章: 9
註冊時間: 2004-04-15 17:37:34
來自: 學學國
聯繫:

如果市要order 這樣應該也可以

文章 學學安 »

function Tasks_ds_BeforeBuildSelect() {
global $Tasks;

If ($Tasks->ds->Order == "") {
$Tasks->ds->Order = "task_name DESC";
}

}
我是學學國的學學安.. 研究,研究,研究 ,學習,學習,學習.....還有 ..這一生中最幸福之1的事就是認識 codecharge..
我的msn polo13999@msn.com
歡迎加入討論 Codecharge Studio
回覆文章

回到「CodeCharge Studio」