How to show exception raised in the InterBase? |
答題得分者是:speedup
|
kylixyao
一般會員 發表:10 回覆:11 積分:4 註冊:2003-11-20 發送簡訊給我 |
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 發送簡訊給我 |
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 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |