(Berlin)
I have a TClientDataSet defined on a datamodule ("cdsLog").
I have the following defines/registrations in the DMs onCreate:
IDEScripter1.AddComponent(cdsLog);
IDEScripter1.DefineClassByRTTI(TSQLConnection, roInclude, true);
IDEScripter1.DefineClassByRTTI(TDBXOdbcDriverLoader, roInclude, true);
IDEScripter1.DefineClassByRTTI(TCustomSQLDataSet, roInclude, true);
IDEScripter1.DefineClassByRTTI(TSQLDataSet, roInclude, true);
IDEScripter1.DefineClassByRTTI(TDataSetProvider, roInclude, true);
IDEScripter1.DefineClassByRTTI(TDataSet, roInclude, true);
IDEScripter1.DefineClassByRTTI(TClientDataSet, roInclude, true);
IDEScripter1.DefineClassByRTTI(TDataSource, roInclude, true);
With IDEEngine1 do
begin
BeginRegisterComponents;
try
RegisterComponent('DBX', TSQLConnection, 'DB');
RegisterComponent('DBX', TSQLDataSet, 'DB');
RegisterComponent('DBX', TDataSetProvider, 'DB');
RegisterComponent('DBX', TDataSource, 'DB');
RegisterComponent('DBX', TClientDataSet, 'DB, DBClient');
finally
EndRegisterComponents;
end;
end;
With the above, I can create a new form, and (in code) access cdsLog (eg cdsLog.Open).
If I drop a TDataSource on the form, I cannot select cdsLog as the dataset.
I'd like to be able to give users the ability to design their own forms around ClientDataSets that I have pre-built and populated in my application.
I can't figure out how to get the TDataSource to "see" the datasets in my DataModule.
Have I missed something in the registrations/setup?
Cheers,
EdB