cancel
Showing results for 
Search instead for 
Did you mean: 

Disable menus

Former Member
0 Kudos

Hi,

I want to disable print preview, print and export excel/word menus, How can I do it? I've tried with the next code but it doesn't work:

Me.SBOAplication.Menus.Item("7169").Enabled = False

Is this code bad?

Thanks in advance,

Vanesa Carrasco

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all,

I want to know how to remove a module in SBO, for example i want to remove the module 'Sales Opportunities' and the sub-modules?

Thanx

Former Member
0 Kudos

Hi,

That is SBO Standard, in the form settings of the principal menu you can set the visible property to false.

Hope it helps,

vanesa

Former Member
0 Kudos

Thanx for your reply, i have another question is it possible, when you create a new module/form to sort manual the position in the main menu?

Former Member
0 Kudos

Hi,

Yes, it's possible. In the creation parameters, you have a property called position, and there you have to put the number of the position you want to put your menu. This position is depends of its father.

Regards

Former Member
0 Kudos

Hi Vanesa,

may be u can try this

oForm.EnableMenu("7169", False)

Manu

Former Member
0 Kudos

Hello again,

The above would only disable a menu on a particular form. Do u need to disable it for the entire application?

AdKerremans
Active Contributor
0 Kudos

Hi Vanessa,

I Think disable the option won't work, because SBO enables it again.

I think the best thing to do is to catch the menuevent and in the before_action set the bubbleEvent to false, so SBO won't process the menu.

Regards

Ad

Former Member
0 Kudos

Hi,

Thanks for your answers. At the end I've done it with bubbleevent = false

Regards,

vanesa

Former Member
0 Kudos

Hi Vanesa

In menuevent try to do

if pVal.MenuUID = "7169" then
  BubbleEvent = false
end if

HTH

Juli