Hide the system-defined New button in D365 AX

Hi,

Hide the system-defined New button in D365 AX



Create new chain of command for Run method.(Go to Form --> Methods --> run )

Create a new class and create COC for run method sample below.

[ExtensionOf(FormStr(InventBatch))]
public final class P_InventBatchForm_Extension
{
    void run()
    {
        next run();
        inventBatch_ds.allowCreate(false); // Disable System Defined NEW Button
      }

}

REF

REF


Comments