i am collecting the the item time reaches to a queue .. and i want to record every item arrival time to this queue in a global table.. i used trigger On Entry to do this , but the global table is cleared after each replication,, the code i used as follows:
/**Custom Code*/ treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); string tablename = /**/"Terminal_Arr"/**/; /** \nNumber of Columns: */ int columns = /**/1/**/; /** \nColumn Format (1 = number, 2 = string): */ intarray array = makearray(columns); fillarray(array,/**/1/**/); if(getinput(current) == 1) { settablesize(tablename,1,columns); for(int index=1; index<=columns; index++) { nodeadddata(gettablecell(tablename,1,index),array[index]); } } else { settablesize(tablename,gettablerows(tablename)+1,columns); } double rows = gettablerows(tablename); /** \nCommands to set the data in the new row:*/ /**/ settablenum("Terminal_Arr",gettablerows("Terminal_Arr"),1,time);