Welcome, Guest
Username: Password: Remember me
Welcome to TeslaSCADA forum!

Tell us and our members about your experience of using our products.
  • Page:
  • 1
  • 2

TOPIC: Report send by email

Report send by email 7 months 1 week ago #3472

  • Sandeep
  • Sandeep's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Karma: 0
Hello sir,
Please guide me how to send a report by mail automatically hours interval and interval also we can change , kindly give a example with script,

Thanks
Sandeep Rawat
The administrator has disabled public write access.

Report send by email 7 months 1 week ago #3476

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 993
  • Thank you received: 134
  • Karma: -102
Hello,

It should like this:
if (Tags.SystemCurrentDateTimeNewHour==true){
Tags.NumberOfHours++; // you create this tag youself, it's not system
if (Tags.NumberOfHours>=Tags.SetupPeriodOfHours{. //this tag you also create and use for setup period of sending E-mail
Tags.NumberOfHours=0;
reportsendbyemail(”Report1","reportfile.jpg", "Report title", "Here's report from TeslaSCADA");
}
}

Best regards,
Ruslan
The administrator has disabled public write access.

Report send by email 7 months 1 week ago #3479

  • Sandeep
  • Sandeep's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Karma: 0
Hello sir,
Thanks for supporting , but issue now , when i compile the scrip then error is showing like: Unsupported mathematical operation for Boolean
So as refernce i have attached the Screenshot also, Pls reply as soon as possible.

Thanks
Sandeep Rawat
The administrator has disabled public write access.

Report send by email 7 months 1 week ago #3481

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 993
  • Thank you received: 134
  • Karma: -102
Hello,

Change to if (Tags.SystemCurrentDateTimeNewHour==1){

}

Best regards,
Ruslan
The administrator has disabled public write access.

Report send by email 7 months 1 week ago #3482

  • Sandeep
  • Sandeep's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Karma: 0
Hello sir,
Thanks for giving immediate support but when i bind the tag , now error showing (ine: 6.Error message: Wrong call function java.lang.IllegalArgumentException: Width (-1) and height (842) cannot be <= 0)
Kindly guide me ,
So as reference i have attached the screenshot also

Thanks
Sandeep Rawat
The administrator has disabled public write access.

Report send by email 7 months 1 week ago #3483

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 993
  • Thank you received: 134
  • Karma: -102
You should use { in your if expressions.

Best regards,
Ruslan
Last Edit: 7 months 1 week ago by fatkhrus.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Go to top