Hide/unhide button in AX

Latest Axapta / Dynamics AX FAQ Pages

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Verified) This post has 2 verified solutions | 7 Replies | 1 Follower

22 Posts
236 Points
Joined: 2009-2-6
Last Online:
2009-12-4 6:12
Hoai Vu posted on 2009-11-5 7:04 | Locked

Dear all, I want to hide some button on some table form in AX. Because I don't want someone Post some journal.

How I do it?

Thanks, regards

Solution (Verified) Verified Solution

Male
361 Posts
8,278 Points
Joined: 2007-4-27
Last Online:
2013-6-14 9:01
Location: India
Moderator
Solution (Verified) Kapil Khanna replied on 2009-11-6 18:51 | Locked
Verified by Hoai Vu

Administration -> Security -> User Group Permissions -> Security -> General Ledger -> Journals -> Post. Deny i.e. make it "No Access" this for the group. But test it before you do it on Live System. It won't hide the button will make it grey user will not be able to do anything on button. See Post and Transfer as well.

Please

1. Mention the version of the database in your posts

2. If ur earlier issues are solved please mark them so, if not please continue and update them with the queries u have pending related to them, if any.

3. If urs is a localization issue please mention that as well.

Male
11,105 Posts
179,297 Points
Joined: 2000-11-3
Last Online:
2014-10-24 9:41
Location: UK
DynamicsNAVMVP
Moderator
Solution (Verified) AdamRoue replied on 2009-11-6 19:08 | Locked
Verified by Hoai Vu

Go to permissions, select the main menu one, then remove the button from full control to no access.

So for example go to Sales Ledger - Customer - Sales Orders - Sales Orders. No rights to the invoice class means they cannot run the invoice process.

I know very little about this, but it is relatively simple, just a lot of work.

“Any fool can know. The point is to understand.”
Albert Einstein

All Replies

Male
361 Posts
8,278 Points
Joined: 2007-4-27
Last Online:
2013-6-14 9:01
Location: India
Moderator
Kapil Khanna replied on 2009-11-5 18:10 | Locked

Use Security for this instead of modifying the form.

Please

1. Mention the version of the database in your posts

2. If ur earlier issues are solved please mark them so, if not please continue and update them with the queries u have pending related to them, if any.

3. If urs is a localization issue please mention that as well.

22 Posts
236 Points
Joined: 2009-2-6
Last Online:
2009-12-4 6:12
Hoai Vu replied on 2009-11-6 2:14 | Locked

OK, I don't want to modify table, but where I can setup to hide/unhidden button. I think AX can do it.

Thanks, regards 

Male
37 Posts
794 Points
Joined: 2009-9-5
Last Online:
2012-10-18 11:10
Location: Hyd, India
Gaurav replied on 2009-11-6 5:48 | Locked

You should go to the form design, then look out for the Posting button/ menu item from the relevant button group. In properties set Visible to "NO".

U can find the exact location of the button in form design by making a right click on the button, select "set up". this will open User Set up form. u can locate the button on Layout. But to hide the button, do it through form design.

Primarily we follow the security key concept to disable posting button for a user or group of users.

Male
11,105 Posts
179,297 Points
Joined: 2000-11-3
Last Online:
2014-10-24 9:41
Location: UK
DynamicsNAVMVP
Moderator
AdamRoue replied on 2009-11-6 7:34 | Locked

If you go to the form and design the form so the posting button is hidden NOONE will be able to post.

As a user you could right mouse click and hide, but then the user can right mouse click and unhide.

This is why setting up the posting rights by security is the correct suggestion.

“Any fool can know. The point is to understand.”
Albert Einstein

22 Posts
236 Points
Joined: 2009-2-6
Last Online:
2009-12-4 6:12
Hoai Vu replied on 2009-11-6 18:28 | Locked

I think that AdamRoue is right, we can use setup security to do it. Because I don't want someone can post, there are 1 person who can post these journal.

If I use setup security, could I hide or unhide some button? I think AX can do it but I don't know where to setup this.

Thanks, Regards

Male
361 Posts
8,278 Points
Joined: 2007-4-27
Last Online:
2013-6-14 9:01
Location: India
Moderator
Solution (Verified) Kapil Khanna replied on 2009-11-6 18:51 | Locked
Verified by Hoai Vu

Administration -> Security -> User Group Permissions -> Security -> General Ledger -> Journals -> Post. Deny i.e. make it "No Access" this for the group. But test it before you do it on Live System. It won't hide the button will make it grey user will not be able to do anything on button. See Post and Transfer as well.

Please

1. Mention the version of the database in your posts

2. If ur earlier issues are solved please mark them so, if not please continue and update them with the queries u have pending related to them, if any.

3. If urs is a localization issue please mention that as well.

Male
11,105 Posts
179,297 Points
Joined: 2000-11-3
Last Online:
2014-10-24 9:41
Location: UK
DynamicsNAVMVP
Moderator
Solution (Verified) AdamRoue replied on 2009-11-6 19:08 | Locked
Verified by Hoai Vu

Go to permissions, select the main menu one, then remove the button from full control to no access.

So for example go to Sales Ledger - Customer - Sales Orders - Sales Orders. No rights to the invoice class means they cannot run the invoice process.

I know very little about this, but it is relatively simple, just a lot of work.

“Any fool can know. The point is to understand.”
Albert Einstein

Page 1 of 1 (8 items) | Get this RSS feed | Bookmark and Share