question

Ashlee W avatar image
0 Likes"
Ashlee W asked Jeanette F commented

How do I delete a row in a stat collector once it's finished?

Hi There,

How do I delete a row in a stat collector once it's finished? I only want the stat collector table to reflect patients who are currently in a location. Therefore once they leave I would like to delete the row from the table.

I tried the following in a custom code (below) for the "On Row Finished" trigger but I am getting an error saying it cannot delete the row.

collector.as(Table).deleteRow(rowNum)

How do I do this correctly?

Thanks!

FlexSim 22.1.2
healthcarestatistics collectordelete row
· 1
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Ashlee W commented

That sounds more like you should be pushing and pulling from a List.

· 3
5 |100000

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