Strange issue with TDAMemDataTable

(egold2005) #1


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

I have the following code:

procedure TfrmDeliveryZoneReport.FormCreate(Sender: TObject);

mdtAccounts.RemoteDataAdapter := FIdlsMain.ClientInterface.CRUDRDA;

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.

(EvgenyK) #2

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

(egold2005) #3

Obviously i cant.

Any more ideas?

(EvgenyK) #4

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

(egold2005) #5

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.

(EvgenyK) #6

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

(egold2005) #7

Thanks Evgeny, that was it!