Hi Community,
I have created a new Project where I want to customize my the standard freetextinvoice.
What I have done so far is simple and I hope the best way to do so, if not please give recommendations.
I created my project and copied standard classes into my project and they got the names at first
"FreeTextInvoiceControllerCopy", "FreeTextInvoiceDPCopy", "FreeTextInvoiceContractCopy", and created a Handler class "FreeTextInvoiceHander":
class FreeTextInvoiceHandler
{
[SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
{
switch (_docType)
{
case PrintMgmtDocumentType::SalesFreeTextInvoice:
_result.result(ssrsReportStr(FreeTextInvoiceCopy1, Report));
break;
}
}
}
I also extended FreeTextInvoice output MenuItem and changed the Object Property to "FreeTextInvoiceControllerCopy".
In Accounts Receivable/ Forms/ Form setup/ Print management/ FreeTextInvoice/ Original/ I changed the report Format to "FreeTextInvoiceCopy1.Report"
I believe that I might have to make some changes in the main method of my ControllerClass but I am not quite sure what changes, since I copied the standard it must actually work the same way.
When I select a record and try to open the report it won't open.

Report
All responses (
Answers (