KB-46333: Stopping tag count on a Counter Tag briefly.

Question:

How can I stop tag count on a Counter Tag briefly?

Solution:

To do so, just set ResetCounterWhenEnabled property as False and, in the desired event, execute two scripts: one to disable tag’s Enable property, and then another one to enable it. 

Example of a script (executed in a button on screen) to stop tag count:

Application.GetObject(“Data.CounterTag1”).Enabled = False

Example of a script (executed in a button on screen) to resume tag count:

Application.GetObject(“Data.CounterTag1”).Enabled = True

If for any reason ResetCounterWhenEnabled property is required to start set as True, the script to stop tag count will look like this:


Application.GetObject(“Data.CounterTag1”).ResetCounterWhenEnabled = False
Application.GetObject(“Data.CounterTag1”).Enabled = False

And the next script, to resume tag count, will look like this:


Application.GetObject(“Data.CounterTag1”).Enabled = True
Application.GetObject(“Data.CounterTag1”).ResetCounterWhenEnabled = True

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

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

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *