Page 1 of 1

Remove Option of the Context Menu

Posted: Fri Jan 20, 2012 9:00 am
by gsabel
I need remove of the Context Menu the options "New Data Source" and "New Connection" that open in sidebar Dictionary.

How I do it?

Remove Option of the Context Menu

Posted: Mon Jan 23, 2012 7:51 am
by HighAley
Hello.
gsabel wrote:I need remove of the Context Menu the options "New Data Source" and "New Connection" that open in sidebar Dictionary.

How I do it?
Please, try to use next code:

Code: Select all

StiOptions.Designer.Panels.Dictionary.ShowConnectionNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
Thank you.

Remove Option of the Context Menu

Posted: Mon Jan 23, 2012 8:01 am
by gsabel
I already tried that, but, don't work.

I can hide two items of the Context Menu with this code:

Code: Select all

StiDictionaryPanelService service = StiDictionaryPanelService.GetService(stiDesignerControl1);
            service.SetDictionaryDatabaseNew(false); // Hide  "New Connection..."
            service.ShowBusinessObjectNewMenuItem = false; // Hide  "New Business Object..."
But the other properties do not work.

Now, I need hide the following Items:

Remove Option of the Context Menu

Posted: Tue Jan 24, 2012 7:06 am
by gsabel
gsabel wrote:I already tried that, but, don't work.

I can hide two items of the Context Menu with this code:

Code: Select all

StiDictionaryPanelService service = StiDictionaryPanelService.GetService(stiDesignerControl1);
            service.SetDictionaryDatabaseNew(false); // Hide  "New Connection..."
            service.ShowBusinessObjectNewMenuItem = false; // Hide  "New Business Object..."
But the other properties do not work.

Now, I need hide the following Items:

Remove Option of the Context Menu

Posted: Tue Jan 24, 2012 7:07 am
by gsabel
I already tried that, but, don't work.

I can hide two items of the Context Menu with this code:

Code: Select all

StiDictionaryPanelService service = StiDictionaryPanelService.GetService(stiDesignerControl1);
            service.SetDictionaryDatabaseNew(false); // Hide "New Connection..."
            service.ShowBusinessObjectNewMenuItem = false; // Hide  "New Business Object..."
But the other properties do not work.

Now, I need hide the following Items:

Remove Option of the Context Menu

Posted: Wed Jan 25, 2012 6:47 am
by HighAley
Hello.

Please check these properties on our next prerelease build tomorrow.

Code: Select all

StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowEmptyBusinessObjectsCategory = false;
Thank you.

Remove Option of the Context Menu

Posted: Wed Jan 25, 2012 12:01 pm
by gsabel
Hi.
These properties functioned

Code: Select all

StiOptions.Designer.Panels.Dictionary.ShowConnectionNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
That I was using this in the wrong place hehe

It only remains to wait the next prerelease for to remove Business Object

Thank you very much.

Remove Option of the Context Menu

Posted: Thu Jan 26, 2012 3:16 am
by HighAley
Hello.
gsabel wrote:Hi.
These properties functioned

Code: Select all

StiOptions.Designer.Panels.Dictionary.ShowConnectionNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
That I was using this in the wrong place hehe

It only remains to wait the next prerelease for to remove Business Object

Thank you very much.
We are always glad to help you.

Let us know if you need any additional help.

Thank you.