Friday, June 8, 2018

IDE MORPHX - Access only on Code Read and Debug in AX 2012

Access Restriction on Morphx IDE Development Environment in AX 2012

There is one option to remove the X++ development license from the environment. But doing that means that nobody will be able to even view the code

In this Development, User can able to only Read and Debug the code, will not able to do Create/Update/Delete objects. Even if user having system administrator rights.

Development:
Steps:
·         Add New Enum element --> SysVersionControlType
·         Create New Class --> SANRestrictAXDevAccess extends SysVersionControlSystem
o   Construct Method for new class
o   Override methods
      (Note: Copy below method from class "SysVersionControlSystem" and return code as Below)
Code: return false;
§  allowDelete
§  allowCreate
§  allowEdit
§  allowMoveToModel
§  allowRename
§  isTmpItemOpenedForDelete
                        Codereturn true;
§  applyGlobalSettings
§  ideIntegration   
·         Go to Class--> SysVersionControlSystem --> Method (NewType)
Add your new class (SANRestrictAXDevAccess), construct method in Switch case

Setup Changes Requires:
·         AX--> Development Workspace-->Version Control--> Version control Parameters
·         Select new created enum element from version control type list
·         And Version Control status should be enable

No comments:

Post a Comment

Copy Markup charges while posting purchase invoice using X++

 Copy Markup charges while posting purchase invoice using X++ Class: Important: Code logic is just for Reference.  New class => Duplicate...