|
Note: When in doubt about available task parameters, add the following script into the task and run: for(x in task){print(x + "::" + task[x])} This script prints all the current task parameters.
Where enum1: Where enum1:task.East_1 = "[TIME:0]" Where enum1:task.East_1 = "[COUNTER:0:1:3:2:1]" task.East_1 = "[FILE:c:/temp.csv:1:1]" task.East_1 = "[STATIC:"+ my_string +"]"; Where copyFromSideEnum1:task.East_1 = "[BARCODE:2]"Note: To read and write the field task parameters, the values used are pre-evaluation. For example, to print the current time, you would set the task parameter for field 1 to [TIME:0]. If you print this from JavaScript using print(task.East_1), the result will be [TIME:0], not as the actual time.
Using JavaScript in the VWorks software