SBX - Search With Button

SBX - Forum Post Title

Extension For Standard PO Invoice Printmanagement Report in D365

Dynamics 365 for Finance and Operations Forum

Sebasti Jackson asked a question on 11 Sep 2018 1:41 AM

Question Status

Suggested Answer

Dear All I need to add 2 fields in standard purchase order invoice report with out disturbing standard one, so i duplicate the report and extended the DP class but how should i extend the controller class ???

Because for Print Management Report we need to write condition to print our Customized report name like below

if(_jourTable.TableId == tableNum(VendInvoiceJour))
{
printSettingDetail.parmReportFormatName("VendInvoiceDocument.ReportNew");
}

Please Suggest me how to extend Form letter report Class or else how to achieve this 

Thanks in Advance..

Reply
Lizelle responded on 14 Jun 2019 8:49 AM

Hi there, 

You don't need to extend the controller class. 

Add a new class that Subscribes to the PrintMgmtDocType class. 

You will be able to select your design in Print management and it will use your design. 

[SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
{
switch (_docType)
{

    

             case PrintMgmtDocumentType::PurchaseOrderInvoice:
           _result.result(ssrsReportStr(ACCVendInvoiceDocumentMain, Report));
           break;

}

Reply
Suggested Answer

There is step by step description how to extend these reports on docs docs.microsoft.com/.../custom-designs-business-docs

Reply
Suggested Answer

There is step by step description how to extend these reports on docs docs.microsoft.com/.../custom-designs-business-docs

Reply

SBX - Two Col Forum

SBX - Migrated JS