Strange issue with TDAMemDataTable

Hello,

I have TDAMemDataTable component placed into a form which resides in UilPlugin module.

I have the following code:

procedure TfrmDeliveryZoneReport.FormCreate(Sender: TObject);
begin
inherited;

mdtAccounts.RemoteDataAdapter := FIdlsMain.ClientInterface.CRUDRDA;
mdtAccounts.Open;

It produces “Invalid type cast” exception on Open. TDAMemDataTable.LogicalName is specified on design-time and i am making sure RemoteDataAdapter is being passed on correctly from the host application.

Any ideas? Thanks.

can you create a simple testcase w/o 3rd party components, pls?
you can attach it here or send directly to support@

Obviously i cant.

Any more ideas?

try to debug TDADataTable locally and see what is wrong then.

As soon as i move the form into host application, it works. I cant debug inside plugin module, IDE wont allow me to.

It is now clear that there are some underlying issues with using RO inside plugin modules, because i was not able to get events working earlier either.

make sure that your host and plugin use DA_Core run-time package.

Thanks Evgeny, that was it!