After using setitemtype() with insertcopy() on Message Trigger and then on Entry trigger, using getitemtype() is not reading the item type number.
event-pull-from-list-test-v201703-v096-without-pf.fsm
I want to use getitemtype() command OnEntry trigger after using setitemtype() with insertcopy() OnMessage trigger in Queue_In45.
The insertcopy() command make OnEntry triggered?
If using setitemtype() in next line of insertcopy(), is it invalid?
-----------------------------------------
OnMessage
for (int index = 1; index < numitems; index++) {
treenode newitem = insertcopy(template, destination);
setitemtype(newitem, index);
colorarray(newitem, getitemtype(newitem));
applicationcommand("trackdefaultsoncreate", newitem); }
--------------------------------------
OnEntry
item.labels.assert("PortNo").value = gettablenum("Arriv_Table", seq_no, 5);
item.labels.assert("iType").value = getitemtype(item);
item.Cont_Seq_No = seq_no;
cTable[seq_no][1] = item.Cont_Seq_No;
cTable[seq_no][2] = gettablestr("Arriv_Table", seq_no, 2);
cTable[seq_no][3] = item.PortNo;
cTable[seq_no][4] = time();
------------------------------------------
I want to know about it.
Help me.