Hi Creatio Community,
I was trying to capture the event on the printing report so I can set the date field on the current date. When I try to run print after an opportunity is created it doesn't trigger the generateCardPrintForm event.
Can someone tell me why?
Here is my code on the opportunity page:
generateCardPrintForm: function(){ debugger; var today = new Date(); this.callParent(arguments); this.set("Stage", {value: "423774cb-5ae6-df11-971b-001d60e938c6", displayValue: "Quotation Sent to Customer"}); this.set ("HomartOppsSalesQuoteDate", today); this.save(); //this.reloadEntity(); }
Kind regards,
Joseph
Like
1  comments
Best reply
              13:58 Jan 11, 2023
      
  Hello Joseph,
You need to modify the method arguments in the following manner:
generateCardPrintForm: function(tag){as it's declared in the parent method and as a result the method will be triggered.
13:58 Jan 11, 2023
      
  Hello Joseph,
You need to modify the method arguments in the following manner:
generateCardPrintForm: function(tag){as it's declared in the parent method and as a result the method will be triggered.
Show all comments
  
      
   
  