全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1129
推到 Plurk!
推到 Facebook!

How to show exception raised in the InterBase?

答題得分者是:speedup
kylixyao
一般會員


發表:10
回覆:11
積分:4
註冊:2003-11-20

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-12-01 10:20:29 IP:202.110.xxx.xxx 未訂閱
I use InterBase as database engine.I defined a exception in beforeinsert trigger when inserted fieldvalue less than a specified value.I use MIDAS as middle server.I found that in client,when inserted fieldvalue is less than the given value,the Clientdataset can not applyupdates,and middle server does not show me the defined exception.WHY?how to show exception in MIDAS? thanks.
speedup
資深會員


發表:19
回覆:259
積分:280
註冊:2003-07-04

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-12-01 13:04:22 IP:61.224.xxx.xxx 未訂閱
You must write code in OnReconcileError Event of ClientDataSet, like this  
 
procedure TForm1.ClientDataSet1ReconcileError(
  DataSet: TCustomClientDataSet; E: EReconcileError;
  UpdateKind: TUpdateKind; var Action: TReconcileAction);
begin
 Showmessage(e.Message);    end;
混心雜欲 棄修身~唉
------
唉~
hahalin
版主


發表:295
回覆:1698
積分:823
註冊:2002-04-14

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-12-01 13:07:46 IP:61.222.xxx.xxx 未訂閱
參考看看 可以在資料庫內處理 http://delphi.ktop.com.tw/topic.php?TOPIC_ID=34607
系統時間:2024-05-19 7:26:53
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!