Push Global Table Values To List?

Push Global Table Values To List?

rajankur6494
Collaborator Collaborator
175 Views
4 Replies
Message 1 of 5

Push Global Table Values To List?

rajankur6494
Collaborator
Collaborator

[ FlexSim 20.0.10 ]

Hi Team,

I have to push all table values to list along with column name.

1652291071649.png

What is the easiest way to do it?

Thank you!


0 Likes
Accepted solutions (1)
176 Views
4 Replies
Replies (4)
Message 2 of 5

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

The easiest way is to use the List.push() method, for example, this line will push the value in the first cell to the list:

List("MyList").push(Table("MyTable")[1][1])

If you want a more specific answer you'll have to explain what you're trying to do.



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 5

rajankur6494
Collaborator
Collaborator

Hi @Matthew Gillespie,

Thanks for your answer!

Can you help me with this model if I want to push values with column name in list?

Thank you!

11. PustTableValueToList.fsm

0 Likes
Message 4 of 5

Matthew_Gillespie
Autodesk
Autodesk
@Ankur A3 I'm not sure what you mean by that. Do you want to push a string that has the column name and the cell value? Like "Resource:DN"? Can you give me some examples?


Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 5 of 5

rajankur6494
Collaborator
Collaborator
Ok @Matthew Gillespie. Sure.

I am able to do push values now. I am facing some other issue with model. I will post it separately.

Thanks for your help!

0 Likes