Page 1 of 1

Disable New Datasource Button in Wizard

Posted: Mon Jan 16, 2012 1:21 pm
by AndyDroid
Hi!

I have 2 questions...


is it possible disable new data source button in wizard window?



And... can i disable a specific type of report in wizard window?


thanks
:biggrin:

Disable New Datasource Button in Wizard

Posted: Tue Jan 17, 2012 7:51 am
by Alex K.
Hello,
AndyDroid wrote:is it possible disable new data source button in wizard window?
Unfortunately, it is impossible.
AndyDroid wrote:And... can i disable a specific type of report in wizard window?
We made some improvements in that direction
Please check the latest build when it will be available.

Code: Select all

 StiServiceContainer wizards = StiConfig.Services.GetServices(typeof(StiWizardService));
            foreach (StiWizardService service in wizards)
            {
                if (service is StiLabelWizardService || service is StiMasterDetailWizardService)
                    service.ServiceEnabled = false;
                else
                    service.ServiceEnabled = true;
            }
Thank you.