Code-First and TDARemoteDataAdapter

Hi,

currently I derive the created *_ServerAccess.pas and add my functionality to this child-component, however, in order to configure the DARemoteDataAdapter I still rely on creating a further TRORemoteService.

Is it possible to
a) assign (e.g. during DataModuleCreate) the IService to the TDARemoteDataAdapter
b) supply a Getter for this TDARemoteDataAdapter during CodeGen?
c) Create the TRORemoteService-Components during CodeGen?

Or is there any better approach to link the TDAMemDataTable’s with there RemoteDataAdapter in a Code-First scenario?

Thanks,
Peter

in general, TDARemoteDataAdapter can work without any reference to TRORemoteService.
you can specify only TargetURL and UserName/Password or LoginString if needed.

for relativity it can be like

OK,
however this solution is not sufficient for me, as I have a Delphi-LoginService which utilizes NTLM/Kerberos Authentication - so I cannot use your approach as the RDA is for the DataServices which relys on an established session.

Are there any other approaches when I rely on an established session/own logon-meachnism?

a) assign (e.g. during DataModuleCreate) the IService to the TDARemoteDataAdapter

RDA can be linked only to TRORemoteService and can’t to any interface.

b) supply a Getter for this TDARemoteDataAdapter during CodeGen?
c) Create the TRORemoteService-Components during CodeGen?

_ServerAccess.pas is generated as template for new services so you can update it as you want.
this file is generated manually so all your changes won’t be lost.