COC of active method of the form data source

 Today we are going to create a COC of the acive method and we have written some code on the form level how we are going to call 


[ExtensionOf(FormDataSourceStr(EntAssetWorkOrderTable, IHSAuctionPlan))]

Final class IHSEntAssetWorkOrderTableFrm_IHSAuctionPlanDS_Extension

{

    public int active()

    {

        int ret = next active();


        FormRun                 formRun                     = this.FormRun();

        FormDataSource         auctionPlan_DS   = formRun.datasource(FormDatasourceStr(EntAssetWorkOrderTable, IHSAuctionPlan));


        element.ihsEnableDisableOfferOfferReceived(auctionPlan_DS);

        element.ihsEnableDisableOfferAccepted(auctionPlan_DS);


        return ret;

    }


}


Comments

Popular posts from this blog

Customization on Sales invoice Report in D365 F&O

75) COC - Create a coc of the table modified method

46) D365 FO: SHAREPOINT FILE UPLOAD USING X++