Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

How to make EDIT button visible false in D365Fo Form

$
0
0

Hi All,

I created customized form in that I tried to hide the new, delete  and edit  (System button ) .

Using below code I can able to achieve NEW,DELETE button

public void init()
    {
        this.form().design().showNewButton(0);
        this.form().design().showDeleteButton(0);
        super();

    } 

Note: But I able to hide the EDIT button in my form I tried different way to resolved but I can't able to do it,

I tried below code but no luck, please help to hide the EDIT button

publicvoidinit()
    {
       
#SysSystemDefinedButtons

       
super();

        attachButton=
this.control(this.controlId(#SystemDefinedAttachButton)) as FormCommandButtonControl;
        attachButton.visible(
false);
    }
 


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>