How to change the way the created table and dataset is named on a data module

I remember, a lot of years ago, Alessandro tell me there’s a registry entry to manage how the tables and dataset created inside a datamodule using remote adapter -> create data tables is named. I want change from

tb_[tablename]
to
tb[tablename]

is possible?

yes, it is possible.

from uDADataTableWizards.pas:

procedure CreateDataTable(aDesigner: IDesigner; aClass:TDADataTableClass; aAdapter: TDACustomDataAdapter; aSchema: TDAClientSchema;
                          const aDataTableName: String; X,Y: integer; aCreateDataSource: boolean=true); overload;
...
  lr := TRegistry.Create;
  try
    lr.RootKey := HKEY_CURRENT_USER;
    lr.OpenKey('Software\RemObjects\Data Abstract\IDE\ComponentPrefixes',false);
    lDataTablePrefix := lr.ReadString('TDADataTable');
    lDataSourcePrefix := lr.ReadString('TDADataSource');
  finally
    lr.Free();
  end;
  if lDataTablePrefix = '' then lDataTablePrefix := 'tbl_';
  if lDataSourcePrefix = '' then lDataSourcePrefix := 'ds_';
3 Likes