question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Ankur A3 commented

Push Global Table Values To List?

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!


FlexSim 20.0.10
global tablepush to list
1652291071649.png (7.5 KiB)
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Ankur A3 commented

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.

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

Ankur A3 avatar image Ankur A3 commented ·

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 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Ankur A3 commented ·
@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?
0 Likes 0 ·
Ankur A3 avatar image Ankur A3 Matthew Gillespie ♦♦ commented ·
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 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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