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 

TMyClientDataSet & DoGetRecords

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Mathias Burbach
Guest





PostPosted: Fri Feb 04, 2005 7:05 am    Post subject: TMyClientDataSet & DoGetRecords Reply with quote



Hello Folks!

I have built my own TClientDataSet descendant and changed the
implementation of DoGetRecords as follows:

type
TMyClientDataSet = class(TCustomClientDataSet)
...

function TMyClientDataSet.DoGetRecords(Count: Integer;
out RecsOut: Integer; Options: Integer; const CommandText: WideString;
Params: OleVariant): OleVariant;
var
OwnerData: OleVariant;
cdsBuildUp: TClientDataSet;
begin
DoBeforeGetRecords(OwnerData);
cdsBuildUp := TClientDataSet.Create(Self);
try
PopulateCDS(cdsBuildUp, OwnerData);
RecsOut := cdsBuildUp.RecordCount;
Result := cdsBuildUp.Data;
finally
cdsBuildUp.Free;
end;
DoAfterGetRecords(OwnerData);
end;

TMyClientDataSet seems to bee happy with the cdsBuildUp.Data, I can see
the fields, I can scroll through the resultset (the RecordCount of
TMyClientDataSet is correct) but there is _no_ data visible.

I am afraid there is a subtle difference between the result of
AppServer.AS_GetRecords and my cdsBuildUp.Data. What would be the
correct way to pass on the data from cdsBuildUp to my class?

Thanks for a short answer in advance.

Salut,
Mathias
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) 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.