線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1798
推到 Plurk!
推到 Facebook!

有個ClientDataSet的PacketRecord的問題...

答題得分者是:william
yuanze
一般會員


發表:7
回覆:5
積分:2
註冊:2002-07-23

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-03-11 16:46:27 IP:211.23.xxx.xxx 未訂閱
請教各位大大... 在開發 N-Tire 架構用ClientDataSet,然後下參數化查詢 (例如:SELECT AAA FROM bcd WHERE ABC=:Param0), PacketRecords = 20, 這時當ClientDataSet去Application Server 抓20筆時所抓回來的卻是原來的已經抓回來的20筆,請問這種情況要如何 處理.
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-03-11 17:09:37 IP:147.8.xxx.xxx 未訂閱
I think your client need to 'tell the server' which page it is asking, e.g. pass the page number using OwnerData in the OnBeforeGetRecords event of the ClientDataset and your server should then programmed to skip the number of page as needed.
huwk
資深會員


發表:26
回覆:340
積分:323
註冊:2002-04-03

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-03-11 21:30:36 IP:211.76.xxx.xxx 未訂閱
當第一次查詢完後..第二次要再取資料.. 用用 TClientDataSet.GetNextPacket d5的help是這麼說解釋的.. Retrieves the next block of records from the application server.
------
熊的學習 http://huwk.blogspot.com
系統時間:2024-04-26 19:06:01
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!