Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added AX 2012 Print Management Integration Guide.pdf
Binary file not shown.
14 changes: 14 additions & 0 deletions Adding a new layout to an existing document
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Adding a new layout to an existing document will follow those 2 steps:

1. Update the PrintMgmtReportFormat table to add records for the new document layout.
 Modify the populate method. Add the appropriate condition for which the new layout should be available. Make use of the local methods inside the populate method. like the following Line of code
addOther(PrintMgmtDocumentType::SalesFreeTextInvoice, ssrsReportStr("Report Name", "Report Design Name"), ssrsReportStr("Report Name", "Report Design Name"), #NoCountryRegionId);

2. Update the PrintMgmtDocType class to handle the new document layout.
Modify the getDefaultReportFormat method. Add the appropriate condition for the new layout. Return the name of your new report layout combination, utilizing the ssrsReportStr intrinsic
function like the following condtion

if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoSA]))
{
return ssrsReportStr("Report Name", "Report Design Name");
}