KB-34100: Adding +1 to an internal tag according to the Preset of a counter tag.

Question:

How can I configure a counter tag to add +1 to an internal tag, via scripts, every time it hits the Preset?

Solution:

To do so, create a script in the OnPreset event of the counter tag, and add the following script:

Parent.Item(“InternalTag”).Value = Parent.Item(“InternalTag”).Value + 1

Thus, every time the counter tag hits the Preset, it calls this script, which adds +1 to the value of the internal tag.

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *