Remove Option of the Context Menu
Remove Option of the Context Menu
I need remove of the Context Menu the options "New Data Source" and "New Connection" that open in sidebar Dictionary.
How I do it?
How I do it?
Remove Option of the Context Menu
Hello.
Thank you.
Please, try to use next code: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?
Code: Select all
StiOptions.Designer.Panels.Dictionary.ShowConnectionNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
Remove Option of the Context Menu
I already tried that, but, don't work.
I can hide two items of the Context Menu with this code:
But the other properties do not work.
Now, I need hide the following Items:
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..."
Now, I need hide the following Items:
- Attachments
-
- 1581.Business Objects.jpg (27.96 KiB) Viewed 1637 times
-
- 1579.New Data Source....jpg (40.11 KiB) Viewed 1637 times
Remove Option of the Context Menu
gsabel wrote:I already tried that, but, don't work.
I can hide two items of the Context Menu with this code:
But the other properties do not work.Code: Select all
StiDictionaryPanelService service = StiDictionaryPanelService.GetService(stiDesignerControl1); service.SetDictionaryDatabaseNew(false); // Hide "New Connection..." service.ShowBusinessObjectNewMenuItem = false; // Hide "New Business Object..."
Now, I need hide the following Items:
Remove Option of the Context Menu
I already tried that, but, don't work.
I can hide two items of the Context Menu with this code:
But the other properties do not work.
Now, I need hide the following Items:
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..."
Now, I need hide the following Items:
- Attachments
-
- 1584.Business Objects.jpg (27.75 KiB) Viewed 1695 times
-
- 1583.New Data Source....jpg (40.11 KiB) Viewed 1695 times
Remove Option of the Context Menu
Hello.
Please check these properties on our next prerelease build tomorrow.
Thank you.
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;
Remove Option of the Context Menu
Hi.
These properties functioned
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.
These properties functioned
Code: Select all
StiOptions.Designer.Panels.Dictionary.ShowConnectionNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
It only remains to wait the next prerelease for to remove Business Object
Thank you very much.
Remove Option of the Context Menu
Hello.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.gsabel wrote:Hi.
These properties functionedThat I was using this in the wrong place heheCode: Select all
StiOptions.Designer.Panels.Dictionary.ShowConnectionNewMenuItem = false; StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
It only remains to wait the next prerelease for to remove Business Object
Thank you very much.
Let us know if you need any additional help.
Thank you.