RE: How to disable sales table button in action pane in D365FO
Seems you ended up in the Dynamics AX forum. I have moved your post to D365FO forum.
You have some options.
1) Set property Enabled to false in the button properties. This is only feasible if you don't have any additional requirements (we don't know since no additional details were shared).
2) Set your button's AutoDeclaration property to true, and then in x++ code call MyButton.enabled(false) whenever you want to disable the button, or MyButton.enabled(true) when you want to enable it.