Hi there, I am a bit confused.
I wrote my code to apply to an on entry trigger of a Queue ("GreenRow"). The code shows up in the treenode script, but the global table never updates when the model is ran.
However, when i manually click on the Queue and set the onentrytrigger to "Write to Global Table", the model runs fine and updates the global table correctly. I went back to the treenode and saw the new code from the manual entry, deleted it back to my original code and then my original code worked fine...
Is there some sort of APPLY command i need to enter when directly writing to the entrytrigger node?
treenode entrynode = node(">variables/entrytrigger",GreenRow); string entrycode = "\ treenode item = parnode(1);\ treenode current = ownerobject(c);\ int port = parval(2);\ string trackedvar = \"TrackedVariable1\";\ double initial = 0;\ double val = getentrytime(item);\ settablenum(\"GlobalTable27952\",1,1,453);\ if(getitemtype(item) == 1)\ settablenum(\"GlobalTable27952\",1,1,initial + val);"; setnodestr(entrynode, entrycode);
Thanks
I'd like to build a table timestamping every entry time for each item type. The columns would be the item types and the rows each time stamp.