This Article has been submitted by Sai Kiran Anand a reader of my Blog. This is nice tip can be helpful.
Requirement:
Enable the Copy Record option in menu items, at the same time should Remove New Record from Menu items.
Solution:
If the requirement was to disable both Copy Record and New Record then we could have checked No insert = True but here we wanted Copy to remain enabled and New Record to get disabled. Sai Kiran pointed out a rather simple method to achieve the same thing.
- Go to Applet > Applet method menu item
- Create a New Record
- Enter the following values in the field
Command: New Record (SWE)
Menu Text: New Record
Position: 1
Suppressed menu item: True
It will remove the New Record option from menu items and Copy Record is also enabled. By this way, we can disable all the unnecessary menu items
I have not tried this personally, so just a word of caution New Record might still be available through keyboard shortcut. In case if you want to disable it completely then add the following lines in the BC Pre Invoke
if (MethodName == "NewRecord")
return(CancelOperation);


(2 votes, average: 3.5 out of 5)
O comments at "How To Disable Applet Menu Item"
Comment Now!