How to disable some connections type in JS version
How to disable some connections type in JS version
Hello I found this code to disable some connections types:
StiServiceContainer services = StiConfig.Services.GetServices(typeof(StiDataAdapterService));
foreach (StiDataAdapterService service in services)
{
Type serviceType = service.GetType();
service.ServiceEnabled = !serviceType.Equals(typeof(StiSqlAdapterService)) && !serviceType.Equals(typeof(StiOleDbAdapterService));
}
How to code this for JS version ??
Thanks
StiServiceContainer services = StiConfig.Services.GetServices(typeof(StiDataAdapterService));
foreach (StiDataAdapterService service in services)
{
Type serviceType = service.GetType();
service.ServiceEnabled = !serviceType.Equals(typeof(StiSqlAdapterService)) && !serviceType.Equals(typeof(StiOleDbAdapterService));
}
How to code this for JS version ??
Thanks
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable some connections type in JS version
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
#8330
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
#8330
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable some connections type in JS version
Hello,
You can use the following code:
Thank you.
You can use the following code:
Code: Select all
let databases = StiOptions.Services.databases;
databases.clear();
databases.add(new Stimulsoft.Report.Dictionary.StiFirebirdDatabase());
databases.add(new Stimulsoft.Report.Dictionary.StiMySqlDatabase());
databases.add(new Stimulsoft.Report.Dictionary.StiSqlDatabase());
Re: How to disable some connections type in JS version
But in JS don't have a StiOptions class
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable some connections type in JS version
Hello,
What version are you use?
Please check the last release build version.
Thank you.
What version are you use?
Please check the last release build version.
Thank you.
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to disable some connections type in JS version
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Please send us a sample project that reproduces the issue for analysis.
Thank you.