Page 1 of 1
Changes on "New Data Source" screen
Posted: Thu Apr 19, 2012 1:40 pm
by marco.correa
Hello,
1- We need to hide the Edit button on "New Data Source" window.
2- We also need to hide the adapters below of connections list.
How can we do that?
Thank you.
Changes on "New Data Source" screen
Posted: Fri Apr 20, 2012 8:56 am
by HighAley
Hello.
[quote="marco".correa]1- We need to hide the Edit button on "New Data Source" window.[/quote]
We'll try to add this feature. We'll let you know when it will be available.
[quote="marco".correa]2- We also need to hide the adapters below of connections list.[/quote]
You could disable service only. Try to use next code:
Code: Select all
foreach (StiService service in StiConfig.Services)
{
if (service is StiOleDbAdapterService || service is StiSqlAdapterService) service.ServiceEnabled = false;
}
Thank you.
Changes on "New Data Source" screen
Posted: Fri May 18, 2012 9:05 am
by marco.correa
Hello.
1- Ok.
2- We want to hide all the connectors. We implemented the code to do that but we resulted a error.
Thank you.
Changes on "New Data Source" screen
Posted: Mon May 21, 2012 9:19 am
by HighAley
Hello.
[quote="marco".correa]We want to hide all the connectors. We implemented the code to do that but we resulted a error.[/quote]
Please, send us that code. What error do you have?
As an alternative you could disable New Connection menu with next code:
Code: Select all
Stimulsoft.Report.Design.Panels.StiDictionaryPanelService service = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();
service.ShowConnectionNewMenuItem = false;
Thank you.
Changes on "New Data Source" screen
Posted: Mon May 21, 2012 10:52 am
by marco.correa
Hello,
Follow the sample project.
Thank you.
Changes on "New Data Source" screen
Posted: Tue May 22, 2012 8:03 am
by HighAley
Hello.
You should use code with deleting services and menu items before InitializeComponent() method.
Than you.
Changes on "New Data Source" screen
Posted: Wed May 23, 2012 7:37 am
by marco.correa
Hello.
If we hide all conectors and add a new datasource will be shown the "New Data Source" window instead of "Select Data".
We want to hide adapters to don't confuse the our users that uses the tool.
Thank you.
Changes on "New Data Source" screen
Posted: Fri May 25, 2012 2:49 am
by HighAley
Hello.
Please, try to use next code to disable SQL and OleDB adapters:
Code: Select all
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));
}
Thank you.