Showing posts with label Standard. Show all posts
Showing posts with label Standard. Show all posts

Monday, March 15, 2021

How to disable system defined buttons in standard form of d365?

   How to disable system-defined buttons in the standard form of d365?



Right-click on the button and copy the name.



check the Below code.


    FormCommandButtonControl 	newButton;

    #SysSystemDefinedButtons //- standard macro

    // #SystemDefinedNewButton - button name.

    newButton = sender.control(sender.controlId(#SystemDefinedNewButton)) as FormCommandButtonControl;

    newButton.visible(false);

    // Disable in design
    sender.formRun().design().showNewButton(0);
    this.form().design().showNewButton(0);

Keep Daxing!!


Tuesday, February 23, 2021

Standard classes

Standard classes


 Sales Table Confirm:

/// <summary>


/// </summary>

[ExtensionOf(classStr(SalesConfirmJournalPost))]

internal final class SalesConfirmJournalPost_Extension

{

/// <summary>

/// Chain of Command; after posting, update reallocation records.

/// </summary>

protected void endPost()

{

next endPost();

//Try to write here

}

}

SalesPickingListJournalPost -- Picking

SalesPackingSlipJournalPost -- Paking

SalesInvoiceJournalPost -- Invoice.


Purchase Order receive :(Receipt list)

/// <summary>


/// </summary>

[ExtensionOf(classStr(Purchpackingslipjournalpost))]

internal final class Purchpackingslipjournalpost_Extension

{

/// <summary>

/// Chain of Command; after posting, update reallocation records.

/// </summary>

protected void endPost()

{

next endPost();

//Try to write here

}

}

PurchInvoiceJournalPost -- Invoice

PurchReceiptsListJournalPost -- ReceiptsList


Transfer Order receive :(Receipt list)

[ExtensionOf(classStr(InventTransferUpdReceive))]

final class InventTransferUpdReceive_Extension


commitLedger() method.


InventTransferUpdShip -- Ship

InventTransferUpdPick -- Pick.

Saturday, February 6, 2021

Add customized code in sales order confirmation In D365FO

Add customized code in sales order confirmation  In D365FO 


Check below method.


[ExtensionOf(classStr(SalesConfirmJournalPost))]

internal final class TestSalesConfirmJournalPost_Extension

{

    /// <summary>

    /// Chain of Command; after posting, update reallocation records.

    /// </summary>

    protected void endPost()

    {

        next endPost();  

//Try to write here 

    }

}

Keep Daxing!!