Article View: be.comp.programming
Article #11945Re: Delphi multi tier problem
From: Alain Christis
Date: Wed, 02 Jan 2002 16:43
Date: Wed, 02 Jan 2002 16:43
46 lines
2295 bytes
2295 bytes
Use Open instead of Execute when the query returns data
Alain Christis
"Gargoyle" <Gargoyle@NOSPAMpandora.be> schreef in bericht
news:ewEY7.5124$mE6.1447467056@hestia.telenet-ops.be...
> Hi,
>
> I am using as server a remote data module which holds a TIBStoredProc
> connected to a TDataSetProvider.On the clients side I am using a
> TClientDataSet conected to the TDataSetProvider on the server (so far so
> good, i think). There is also a TDatasource connected to the
TClientDataset.
> Now for my problem:
>
> On a simple form I am using a 2 TDBLoookupComboBoxes to get some info. I
> want to sent 2 different parameters(KL_ID and KLAD_ID) to the
TIBStoredProc
> and get other data back. But I get nothing back.
>
> With DMClient do
> begin
> With CDSOphalenKlAd do
> begin
> Params.ParamByName('KLAD_ID').Value := KL_ID;
> Params.ParamByName('Kl_ID').Value := KLAD_ID;
> Execute;
> end;
> With CDSOphalenBest do
> begin
> Params.ParamByName('KL_ID').Value := DBLookupKlant.KeyValue;
> Params.ParamByName('KLAD_ID').Value := DBLookupKLAD.KeyValue;
> execute;
> end;
> end;
>
> What do I have to do to get the corresponding data back from my server?
> I want to fill this data into a dbGrid.
> What do I do?
>
> regards,
> F.
>
>
>
>
Technical Details
Message-ID:
<3c33391d$0$75166$ba620e4c@news.skynet.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!skynet.be!skynet.be!louie!not-for-mailReferences:
<ewEY7.5124$mE6.1447467056@hestia.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcea4,a9f87552813810eb X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-01-02 08:45:48 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!skynet.be!skynet.be!louie!not-for-mail From: "Alain Christis" <plusplussoftware@skynet.be> Newsgroups: be.comp.programming References: <ewEY7.5124$mE6.1447467056@hestia.telenet-ops.be> Subject: Re: Delphi multi tier problem Date: Wed, 2 Jan 2002 17:43:06 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Lines: 48 Message-ID: <3c33391d$0$75166$ba620e4c@news.skynet.be> Organization: -= Skynet Usenet Service =- NNTP-Posting-Host: 217.136.58.18 X-Trace: 1009989918 reader0.news.skynet.be 75166 217.136.58.18 X-Complaints-To: abuse@skynet.be