How to disable export functionality from all list applets in the application

How to disable export functionality from all list applets in the application



The Export menu item that appears on all list applets are defined in the applets class and internally it invokes the standard command "Export (SWE)".

It is possible to disable the Export menu item for all list applets in the application by reconfiguring the standard command "Export (SWE)" to execute a custom business service and then implement code on the PreCanInvokeMethod event to prevent the ExportQuery method from being executed.

1. Create custom business service called "DisableExport" with following server code:


function Service_PreCanInvokeMethod (MethodName, &CanInvoke)
{

if (MethodName == "ExportQuery")
  {
  CanInvoke = "FALSE";
  return (CancelOperation);
  }

return (ContinueOperation);
}


2. Reconfigure the standard Command object "Export (SWE)" with following properties:

business service = DisableExport
target = Server

Note it might be necessary for you to make the Command objects visible in the object explorer, this can be done in the Tools > View >options > Object Explorer screen.



go to link download

Popular posts from this blog

DroidJack RAT Androrat Android Sample

Modern Combat 2 Black Pegasus apk data Free Download

Notepad 6 6 8