Wednesday, June 6, 2012

How to Block user from doing Analysis –>reports ?

If you need to block the user from doing Analysis–>reports in all the modules.
I put a msgbox command in ActionCanExecute to display the ActionName each time it was called. Then I started clicking on the Analysis > Reports reports. It looks like each report is recognized individually as a unique action name. It does not appear that clicking on Analysis or Reports is recognized as an action. But, the action name of each report follows a standardized naming convention:

You could modify the workflow to capture the action name, compare it to the standardized naming convention, check the current user, and if the code is running for the designated user and attempting to run an action that matches the standard naming for Analysis > Report, then abort the action and/or display a message.

No comments:

Post a Comment