BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing parameters to retreive query results

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
nazeer
Guest





PostPosted: Fri Aug 13, 2004 12:34 pm    Post subject: Passing parameters to retreive query results Reply with quote




Hi,
Can anyone tell how could I pass parameters to XML broker and get the data. So far I did this code which I publish below, but couldn't get the query results:

procedure TWebModule1.MidasPageProducer1AfterGetXMLData(Sender: TObject;
Request: TWebRequest; XMLBroker: TXMLBroker; var OwnerData: OleVariant);
begin
if XMLBroker1.Params.Count = 0 then
XMLBroker1.FetchParams;
XMLBroker1.Params.ParamByName('paraVehicleNo').Value := Request.ContentFields.Values['VehicleNo'];
end;

and:
procedure TWebModule1.XMLBroker1GetResponse(Sender: TObject;
Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
Response.Content := MidasPageProducer1.Content;
Handled := True;

end;

Awaiting anybody's response

Thanx in Advance,

Nazeer

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.