Pushing into list one with internal list and other with global list through code

Pushing into list one with internal list and other with global list through code

sudheer_r
Not applicable
7 Views
3 Replies
Message 1 of 4

Pushing into list one with internal list and other with global list through code

sudheer_r
Not applicable

[ FlexSim 20.1.2 ]

As shown in below image, I am trying to push Group contents into list. I Tried two different ways one with global list and other with internal list. Global list is working and internal list is not working.

Please guide me on this.

Trail.fsm

28634-group.jpg

28622-group1.jpg

0 Likes
Accepted solutions (1)
8 Views
3 Replies
Replies (3)
Message 2 of 4

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

The List() constructor in FlexScript only works for global lists. We do not support accessing internal lists through code. To push and pull from an internal list use the Push to List and Pull from List activities in Process Flow. If you really want to interface with the list through FlexScript then use a global list.



Matthew Gillespie
FlexSim Software Developer

Message 3 of 4

rhramac
Enthusiast
Enthusiast

@Matthew Gillespie : I am trying to add flow item into global list from a group as shown in the above example. But content in the group is not get populated in the global list?1651799646063.png

1651799674672.png

0 Likes
Message 4 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
List("AR_Drive_List").push(Group("AR_Drive_Group").toFlatArray())
0 Likes