question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Jeanette F commented

Problem Using a global list

In a Prior Post @Joerg Vogel presented an answer I am trying to replicate in the attached program.

Selecting Arrived Patients_A.fsm

All I am adding is the 3 lines of Code after the List object in the Patient flow. I cannot figure out why these three lines work in Vogel's model but not in the attached model.

suggestions?




FlexSim 21.2.4
global listsql query
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Tee Hiett, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Tee Hiett commented

The tables you are trying to clone the result to don't exist in your model.

· 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.

Tee Hiett avatar image Tee Hiett commented ·

How simple....I was working under the assumption as to how FlexSim handles labels.

The program seems to be working now but I'm still having trouble getting the SUM Into the table with the command in the command my2ndTable.cloneTo(Table("PatsProcessedEarly"));

Selecting Arrived Patients_A.fsm

Help?


0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Tee Hiett commented ·

Looks like another small mistake. Your query is missing a "p" in the column/field name.

1670360156803.png

0 Likes 0 ·
1670360156803.png (10.6 KiB)
Tee Hiett avatar image Tee Hiett Felix Möhlmann commented ·

Thanks, @Felix Möhlmann — Great Help!

0 Likes 0 ·