Custom Data Adapter Service in 2016.3
Posted: Thu Mar 23, 2017 7:35 am
Hi,
we updated the Stimulsoft dlls from 2013 to 2016.3 and our custom StiSqlAdapterService/StiSqlDatabase/StiUserSource is not working anymore. The list of tables is empty and we cannot choose any tables and columns.
I have looked into the Database connection projects (Stimulsoft.Report.SQLiteDatabase) from the past on the site, but it didn't help. Maybe I am overlooking something.
Thanks for your help
Petr
EDIT - Additional findings:
I have changed the StiSqlAdapterService to StiUserAdapterService and implemented GetDataAdapter in our CustomUserSource:
Ahead when invoking the Designer I call
but GetService is empty, a also see no services at all.
When wiring manually the CustomAdapterService into GetDataAdapter, then at least adding datasource to DataBand works. But when the CustomDataSource is created by Stimulsoft dlls (e.g. Previewing the Report), the GetDataAdapter is null.
we updated the Stimulsoft dlls from 2013 to 2016.3 and our custom StiSqlAdapterService/StiSqlDatabase/StiUserSource is not working anymore. The list of tables is empty and we cannot choose any tables and columns.
I have looked into the Database connection projects (Stimulsoft.Report.SQLiteDatabase) from the past on the site, but it didn't help. Maybe I am overlooking something.
Thanks for your help
Petr
EDIT - Additional findings:
I have changed the StiSqlAdapterService to StiUserAdapterService and implemented GetDataAdapter in our CustomUserSource:
Code: Select all
public override StiDataAdapterService GetDataAdapter()
{
var svc = StiConfig.Services.GetService(typeof(CustomAdapterService)); //always null!
return svc as StiDataAdapterService;
}
protected override string DataAdapterType
{
get
{
return "OurNamespace.CustomAdapterService";
}
}
Code: Select all
StiConfig.Services.Add(new CustomAdapterService(options));
When wiring manually the CustomAdapterService into GetDataAdapter, then at least adding datasource to DataBand works. But when the CustomDataSource is created by Stimulsoft dlls (e.g. Previewing the Report), the GetDataAdapter is null.