Weekly

Parent Previous Next

Weekly

To configure the Weekly Calendar Trigger, follow the steps below:


1.   In the Type ComboBox field, select the value Calendar.


2.   In the Action Type ComboBox field, select the desired type.


3.   Select the Weekly RadioButton Field.


4.   In the DateTime TextBox field, insert the Date and Time that the trigger will be activated.


5.   Select the desired recur of the trigger.


6.   Select the day(s) of the week that the event will be triggered.




Example:


The next example will show how to set up a Trigger which will be activated every week, on Mondays, Wednesdays and Fridays, since 03/06/2015 at 04:33:33 PM.


.     Create a tag in Tags Document named @TagIncrement (integer).

.     Next, create a document Trigger and name it TriggerDoc, and then insert a new item.

.     In the item configuration, keep the Trigger Type as Calendar, in the Action Type select the value Expression.

.     Select the Weekly RadioButton and configure the DateTime that the Trigger will be activated.

.     In the field Recur Every, set this value to one, that is, this trigger will be triggered every week at the configured days. If set to 2, it will be triggered every 2 weeks, and so on.

.     In the Expression field insert: @TagIncrement++;




.     At this point, we will create a new Graphics Document named TriggerTest.

.     In this document create a new TextBox object.

.     After creating the object, set the field Text with the following configuration: @TagIncrement

.     Save the modifications and set the TriggerTest document to be the Startup Graphic.

.     Execute the RunTime. Now, on monday, wednesday and friday in every week in the configured time the @TagIncrement will have its value increased by one.



 

 Note: If the Recur it is configured with zero, the trigger will be executed only once.

          If the Recur it is configured with one, the trigger will be executed every week.

          If the Recur it is configured with two, the trigger will be executed every other week and so on with the other values configured.