ERFormatMappingId formatMapping;
str defaultReportName = PrintMgmtDocType::construct(PrintMgmtDocumentType::SAN_CommercialInvoice).getDefaultReportFormat();
if(defaultReportName)
{
int prefixLength = strLen(ERPrintMgmtSetupUISettingsCtlEventHandler::PrintManagementFormatPrefix);
var formatGuid = str2Guid(subStr(defaultReportName, prefixLength + 1, strLen(defaultReportName) - prefixLength));
formatMapping = ERFormatMappingTable::findByGUID(formatGuid).RecId;
}
No comments:
Post a Comment