question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Phil BoBo edited

How to dynamically copy list entries to a table

I'm looking to copy the entries on a list to a table every X seconds so that I can later make stats on those entries.

I know how to create a loop in a process flow that reads a custom code every X seconds and I know how to write to a table.

What I'm missing is the command to read the list content.

Thanks,

FlexSim 18.1.2
process flowlist
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Arun Kr avatar image
4 Likes"
Arun Kr answered Phil BoBo edited

Hi Patrick Cloutier,

You can write an SQL query to pull/copy the data from the list and dump the queried data into the global table.

  1. Table Result = Table.query("SELECT * FROM ListName");
  2. result.cloneTo(Table("QueryDump"));

Regards,

Arun KR

· 8
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.