web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

How to enable/disable delete or new button on form in D365. #x++ #Dynamics #D365

Krishna Bhardwaj Profile Picture Krishna Bhardwaj 97

Here is an example of how you can enable/disable delete or new buttons on a form based on some conditions. In the standard form, the delete button was disabled, so I created an extension class of that form and wrote my code to enable the delete button.

 

[ExtensionOf(formStr(PayrollJournalLog))]

public final class PayrollJournalLog_Form_Extension

{

    /// <summary>

    /// Coc of init()

    /// </summary>

    public void init()

    {

        next init();

        PayrollJournalLog_ds.allowDelete(true);

    }

}

Comments

*This post is locked for comments