Welcome, Guest
Username: Password: Remember me

TOPIC: Tags to Scripts

Tags to Scripts 10 months 1 week ago #1665

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: 0
Hi Ruslan

I have situation of multiple different tags called the same script upon changes.

Is there a way to identify which tags that triggered the script? By doing so, the script reacts according to the caller tags.

Thanks
The administrator has disabled public write access.

Tags to Scripts 10 months 1 week ago #1666

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 643
  • Thank you received: 98
  • Karma: -114
Hello,

No, unfortunately it's not possible to detect which tag triggered the script.

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

Tags to Scripts 9 months 2 weeks ago #1707

  • arifcorp
  • arifcorp's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: 0
Hi Ruslan,

Is there a way for us to call the script for any changes of the tag value. Not just by comparing the value before calling the script.

Thanks
The administrator has disabled public write access.

Tags to Scripts 9 months 2 weeks ago #1709

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 643
  • Thank you received: 98
  • Karma: -114
Hello,

It's possible if you choose OnDataChange execution. If tag's value is changed in this its executed. For more info: teslascada.com/HTML/script-properties.html

Best regards,
Ruslan
Last Edit: 9 months 2 weeks ago by fatkhrus.
The administrator has disabled public write access.
The following user(s) said Thank You: arifcorp
Go to top