Board index » delphi » how can server show message
Ali Ade
Delphi Developer |
Ali Ade
Delphi Developer |
how can server show message2004-11-10 04:04:07 PM delphi267 in multitier using delphi 8 ,the problem is when the client post values in database on the server check validate of these values i want to know which event i must use on the server to check , is it onupdated for dbadaptor ? second if the server need to show message at the client how can this done? and some times the server need to show message at the client and wait for response to determine what will done.pls help ,thanks. |
Hifni
Delphi Developer |
2004-12-02 01:19:01 PM
Re:how can server show message
"Ali Ade"
<XXXX@XXXXX.COM>writes: Quotein multitier using delphi 8 ,the problem is when the client post values in database on the server check validate of these values i want to know which Quotesecond if the server need to show message at the client how can this done? For Example: Here I am Validating the StartMeter and EndMeter Value, and if it didn't come across the said validation, the server will send an Error Message: procedure TAppServerFuelMax.dspFuelIssueEntryBeforeUpdateRecord( Sender: TObject; SourceDS: TDataSet; DeltaDS: TClientDataSet; UpdateKind: TUpdateKind; var Applied: Boolean); begin if UpdateKind in [ukInsert,ukmodify] then begin With DeltaDS do begin //1st Business Logic: Check whether the Endmeter is Larger than the StartMeter......................... if (FieldByName('IsVehicle').NewValue = True) then if (FieldByName('StartMeter').NewValue)>= (FieldByName('EndMeter').NewValue)then Raise Exception.Create('Entries Could Not Have Higher StartMeter Value than EndMeter Value'); end; end; Hope You might have got the idea now. Rgds, Hifni |