Remove command button is disabled for all non admin users

This question is answered

Hi All,

In Project invoice proposal form(Project->Common->Project Invoice->Invoice Proposal) I get a sales order tab(based on kind of selected records--standard behavior ) And on this sales order tab I can see a remove command button.

Now this button gets enabled for the same set of records only for Admin and remain disabled for all non admin users for the same set of records. I want to make it enable for a particular role. Still struggling. Things I tried so far/checked:

1. This button is not auto declared hence can not see in code.

2. No menu item is attached to this command button.

3. Tried taking help from security dev tool to record but can not reach to this button.

4. Tried creating a role and assigned all the privileges/duties to it, But still this button is disabled even for this role.

FYI- There is customization on this form i.e. added one tab i.e. text tab that's it but did not touch the sales order tab. Also this sales order tab  is by default (property pane) visible NO and auto declaration YES.

Please help.

Thanks

Manoj Parashar

Verified Answer
  • Hi Manoj,

    Note that the System Administrator role is a special one. This role ignores all security settings. Even the eXtensible Data Security. If you look at the contents of the role, you see that is has no contents.

    kind regards,

    André Arnaud de Calavon  |  Microsoft Dynamics AX Solution architect  |  My blog  |  My company

    This post is my own opinion and does not necessarily reflect the opinion or view of my company, Microsoft, both its employees, or other MVPs.

All Replies
  • Hi Manoj,

    Check if the form ProjInvoiceProposal is used. The permissions of the related table on this form is set to 'Update' by default. AllowDelete is set to No on the datasource of this form.

    The form ProjInvoiceProposalDetails is different. The EffectiveAccess is 'Delete' on this one.

     

    kind regards,

    André Arnaud de Calavon  |  Microsoft Dynamics AX Solution architect  |  My blog  |  My company

    This post is my own opinion and does not necessarily reflect the opinion or view of my company, Microsoft, both its employees, or other MVPs.

  • Thanks for your quick help. When i changed to delete from update ,  Now I can see remove button enabled for desired role. But what i don't understand is why was it enabled for admin then? as I understand permission at form level override role permissions/privileges/duties and then it should be same(i.e. only update access no delete) for every role including admin. But that was not the case Admin could always see the remove button enable.

    Thanks!

  • Hi Manoj,

    Note that the System Administrator role is a special one. This role ignores all security settings. Even the eXtensible Data Security. If you look at the contents of the role, you see that is has no contents.

    kind regards,

    André Arnaud de Calavon  |  Microsoft Dynamics AX Solution architect  |  My blog  |  My company

    This post is my own opinion and does not necessarily reflect the opinion or view of my company, Microsoft, both its employees, or other MVPs.