My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

08 January 2015

Modifying Security in application workspace not possible if version control is enabled

Problem description: modifying Security in application workspace not possible if version control is enabled

In case version control is enabled, it is not possible anymore to create new Security roles, new Duties, copy Duties, delete Duties through the Dynamics AX application workspace. You always have to open a development workspace and have access to the AOT.

Solution: disable check on version control

Modify following objects in the AOT to enable modifying Security in the application workspace with version control enabled.

Class SysSecTree, method canDoStuff:


boolean rootSelected, atLeastOneNodeSelected;

// BGN to allow user to create security duties through GUI in case version control is on
//if (SysSecHelper::isVersionControlOn() || !treeControl)
//{
// return [false, false, false, false, false, false];
//}
if (!treeControl)
{
return [false, false, false, false, false, false];
}
// END

idx = treeControl.getFirstSelected();
...


Form SysSecRolesEditTasks, method init:



...
refreshSingleSecurityButton.visible(true);
}

// BGN
// to allow user to create security roles through GUI
// in case version control is on
//
//if (SysSecHelper::isVersionControlOn())
//{
// this.enableReadOnlyMode();
//}
//else
//{
// roleName.viewEditMode(ViewEditMode::Edit);
// roleDescription.viewEditMode(ViewEditMode::Edit);
//}

roleName.viewEditMode(ViewEditMode::Edit);
roleDescription.viewEditMode(ViewEditMode::Edit);
// END

sysTreeControl = new SysSecTreeControl(this as Object);
...


Continue reading......

by Patrik Luca 7 comments

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries

Categories

Recommended Books


Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Live Traffic Feed

Recent Visitors

Blog Archive

My Blog List

Followers

Guest Links