Below is the simple code I have written in form init() method to hide new and delete button from the user interface.
public void init()
{
this.form().design().showNewButton(0);
this.form().design().showDeleteButton(0);
super();
}
or
[ExtensionOf(FormStr(InventBatch))]
public final class P_InventBatchForm_Extension
{
void run()
{
next run();
inventBatch_ds.allowCreate(false); // Disable System Defined NEW Button
}
}
Let me know if you have any questions
@Rahul
public void init()
{
this.form().design().showNewButton(0);
this.form().design().showDeleteButton(0);
super();
}
or
[ExtensionOf(FormStr(InventBatch))]
public final class P_InventBatchForm_Extension
{
void run()
{
next run();
inventBatch_ds.allowCreate(false); // Disable System Defined NEW Button
}
}
Let me know if you have any questions
@Rahul
Thank you very much for the sharing! COOL..
ReplyDeleteszybki kredyt online
If anyone can provide the solution of this thread.
ReplyDeletehttps://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/455311/how-to-hide-system-defined-office-button-systemdefinedofficebutton-from-d365-form
thanks in advance!