public void run() { VendTable vendTable; Args args; TCI_SupplierScoreCardController controller; TCI_SupplierScoreCardContract contract = new TCI_SupplierScoreCardContract(); while select vendTable where vendTable.TCI_SendSupplierScoreCard == NoYes::Yes { args = new Args(); args.record(vendTable); controller = new TCI_SupplierScoreCardController(); controller.parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); controller.parmArgs(args); //contract = controller.parmReportContract().parmRdlContract(); contract.parmRecId(vendTable.RecId); contract.parmEndDate(today()); DatePhysical newStartDate; newStartDate = prevMth(today()); newStartDate = prevMth(newStartDate); contract.parmStartDate(newStartDate); SRSPrintDestinationSettings pds = controller.parmReportContract().parmPrintSettings(); pds.printMediumType(SRSPrintMediumType::Email); controller.parmExecutionMode(SysOperationExecutionMode::Synchronous); controller.parmShowDialog(false); controller.startOperation(); } }
class TCI_SupplierScoreCardController extends SrsReportRunController { public static void main(Args _args) { SrsReportRunController controller = new TCI_SupplierScoreCardController(); controller.parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); controller.parmArgs(_args); controller.startOperation(); } protected void prePromptModifyContract() { TCI_SupplierScoreCardContract contract = this.parmReportContract().parmRdpContract(); contract.parmRecId(args.record().RecId); this.parmReportContract().parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); boolean isPreview = false; //Set the target print destination to screen if (isPreview) { this.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Screen); } this.parmShowDialog(!isPreview); this.parmLoadFromSysLastValue(!isPreview); } }
public void run() { VendTable vendTable; Args args; TCI_SupplierScoreCardController controller = new TCI_SupplierScoreCardController(); TCI_SupplierScoreCardContract contract = new TCI_SupplierScoreCardContract(); SRSPrintDestinationSettings settings; while select vendTable where vendTable.TCI_SendSupplierScoreCard == NoYes::Yes { //args = new Args(); //args.record(vendTable); controller.parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); controller.parmShowDialog(false); //controller.parmArgs(args); //contract = controller.parmReportContract().parmRdlContract(); contract.parmRecId(vendTable.RecId); contract.parmEndDate(today()); DatePhysical newStartDate; newStartDate = prevMth(today()); newStartDate = prevMth(newStartDate); contract.parmStartDate(newStartDate); //SRSPrintDestinationSettings pds = controller.parmReportContract().parmPrintSettings(); //pds.printMediumType(SRSPrintMediumType::Email); //controller.parmExecutionMode(SysOperationExecutionMode::Synchronous); controller.startOperation(); } }
public static void main(Args args) { TCI_SupplierScoreCardBatch tci_SupplierScoreCardBatch = new TCI_SupplierScoreCardBatch(); tci_SupplierScoreCardBatch.parmInBatch(false); //if (tci_SupplierScoreCardBatch.prompt()) tci_SupplierScoreCardBatch.runOperation(); }
public void run() { VendTable vendTable; DirPartyLocation dirPartyLocation; LogisticsElectronicAddress logisticsElectronicAddress; LogisticsElectronicAddressRole logisticsElectronicAddressRole; LogisticsLocationRole logisticsLocationRole; Args args; TCI_SupplierScoreCardController controller; TCI_SupplierScoreCardContract contract; str email; boolean first = true; while select vendTable where vendTable.TCI_SendSupplierScoreCard == NoYes::Yes { while select dirPartyLocation where dirPartyLocation.party == vendTable.Party { while select logisticsElectronicAddress where logisticsElectronicAddress.Location == dirPartyLocation.Location && logisticsElectronicAddress.Type == LogisticsElectronicAddressMethodType::Email { while select logisticsElectronicAddressRole where logisticsElectronicAddressRole.ElectronicAddress == logisticsElectronicAddress.RecId join logisticsLocationRole where logisticsLocationRole.RecId == logisticsElectronicAddressRole.LocationRole && logisticsLocationRole.Name == 'PO EMAIL' { if(first) { email = logisticsElectronicAddress.Locator; first = false; } else { email = email + ";" + logisticsElectronicAddress.Locator; } } } } controller = new TCI_SupplierScoreCardController(); args = new Args(); args.record(vendTable); controller.parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); controller.parmArgs(args); contract = controller.parmReportContract().parmRdpContract(); contract.parmRecId(vendTable.RecId); contract.parmEndDate(today()); DatePhysical newStartDate; newStartDate = prevMth(today()); newStartDate = prevMth(newStartDate); contract.parmStartDate(newStartDate); // Set the Docentric Email print destination settings. SRSPrintDestinationSettings pds = controller.parmReportContract().parmPrintSettings(); pds.printMediumType(SRSPrintMediumType::Email_DC); // Set report template pds.parmSrsPrintReportSettings_DC().parmTemplateId('TCI_SupplierScoreCard.Report'); // Use '' for @DOCENTRIC_DEFAULT_TEMPLATE@ or use 'SalesPackingSlip.Report' for a specific report template // Set email recipient(s) pds.parmEmailPrintDestSettings_DC().parmEmailTo(email); // In the To, Cc and Bcc fields, placeholders and email tokens can also be specified, e.g. @WORKEREMAIL@ as placeholder or @@ as primary contact email token //pds.parmEmailPrintDestSettings_DC().parmEmailCc('cc@docentric.com'); //pds.parmEmailPrintDestSettings_DC().parmEmailBcc('bcc@docentric.com'); // Set email subject pds.parmEmailPrintDestSettings_DC().parmEmailSubject('Test @VendorId@'); // Set email attachment name and format pds.parmEmailPrintDestSettings_DC().parmEmailAttachmentName('Test @VendorId@.pdf'); pds.parmEmailPrintDestSettings_DC().parmEmailAttachmentFileFormat(DocOutputFileFormat::PDF); controller.parmShowDialog(false); controller.startOperation(); }
protected void prePromptModifyContract() { TCI_SupplierScoreCardContract contract = this.parmReportContract().parmRdpContract(); contract.parmRecId(args.record().RecId); this.parmReportContract().parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); boolean isPreview = false; //Set the target print destination to screen if (isPreview) { this.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Screen); } if (args.menuItemName() != '') { this.parmShowDialog(!isPreview); this.parmLoadFromSysLastValue(!isPreview); } }
public void run() { VendTable vendTable; DirPartyLocation dirPartyLocation; LogisticsElectronicAddress logisticsElectronicAddress; LogisticsElectronicAddressRole logisticsElectronicAddressRole; LogisticsLocationRole logisticsLocationRole; Args args; TCI_SupplierScoreCardController controller; TCI_SupplierScoreCardContract contract; str email; boolean first = true; while select vendTable where vendTable.TCI_SendSupplierScoreCard == NoYes::Yes { while select dirPartyLocation where dirPartyLocation.party == vendTable.Party { while select logisticsElectronicAddress where logisticsElectronicAddress.Location == dirPartyLocation.Location && logisticsElectronicAddress.Type == LogisticsElectronicAddressMethodType::Email { while select logisticsElectronicAddressRole where logisticsElectronicAddressRole.ElectronicAddress == logisticsElectronicAddress.RecId join logisticsLocationRole where logisticsLocationRole.RecId == logisticsElectronicAddressRole.LocationRole && logisticsLocationRole.Name == 'PO EMAIL' { if(first) { email = logisticsElectronicAddress.Locator; first = false; } else { email = email + ";" + logisticsElectronicAddress.Locator; } } } } controller = new TCI_SupplierScoreCardController(); args = new Args(); args.record(vendTable); controller.parmReportName(ssrsReportStr(TCI_SupplierScoreCard, Report)); controller.parmArgs(args); contract = controller.parmReportContract().parmRdpContract(); contract.parmRecId(vendTable.RecId); contract.parmEndDate(today()); DatePhysical newStartDate; newStartDate = prevMth(today()); newStartDate = prevMth(newStartDate); contract.parmStartDate(newStartDate); // Set the Docentric Email print destination settings. SRSPrintDestinationSettings pds = controller.parmReportContract().parmPrintSettings(); pds.printMediumType(SRSPrintMediumType::Email_DC); // Set report template pds.parmSrsPrintReportSettings_DC().parmTemplateId('TCI_SupplierScoreCard.Report'); // Use '' for @DOCENTRIC_DEFAULT_TEMPLATE@ or use 'SalesPackingSlip.Report' for a specific report template // Set email recipient(s) pds.parmEmailPrintDestSettings_DC().parmEmailTo(email); // In the To, Cc and Bcc fields, placeholders and email tokens can also be specified, e.g. @WORKEREMAIL@ as placeholder or @@ as primary contact email token //pds.parmEmailPrintDestSettings_DC().parmEmailCc('cc@docentric.com'); //pds.parmEmailPrintDestSettings_DC().parmEmailBcc('bcc@docentric.com'); // Set email subject pds.parmEmailPrintDestSettings_DC().parmEmailSubject('Test @VendorId@'); // Set email attachment name and format pds.parmEmailPrintDestSettings_DC().parmEmailAttachmentName('Test @VendorId@.pdf'); pds.parmEmailPrintDestSettings_DC().parmEmailAttachmentFileFormat(DocOutputFileFormat::PDF); controller.parmShowDialog(false); controller.startOperation(); } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,188
André Arnaud de Cal... 868 Super User 2025 Season 2
Sohaib Cheema 593 User Group Leader