How to inactive/gray out (not suppress) Print, Print Preview, Save List, Apply List, Show Sort Icons
How to inactive/gray out (not suppress) Print, Print Preview, Save List, Apply List, Show Sort Icons, and Hide Sort Icons menu items in Siebel?
The only way I can make inactive using “PrintListService” Business Service.
With the following script in PreCanInvokeMethod event of “PrintListService” Business Service and could disable Print / Print Preview options from Application Menu and Applet Menus for a certain view:
function Service_PreCanInvokeMethod (MethodName, &CanInvoke)
{
var sActiveViewName = TheApplication().ActiveViewName();
if (sActiveViewName == "All Accounts across Organizations")
{
if ((MethodName == 'QuickPrintApplicationMenu') || (MethodName =='QuickPrintCustomAppletMenu') || (MethodName == 'QuickPrintCustomApplicationMenu') || (MethodName == 'QuickPrintPreviewApplicationMenu') || (MethodName == 'QuickPrintPreviewCustomAppletMenu'))
{
CanInvoke = false;
return (CancelOperation);
}
}
return (ContinueOperation);
}