question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked Jason Lightfoot edited

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

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

FlexSim 20.1.2
listflexsim 20.1.2global list
group.jpg (105.8 KiB)
group1.jpg (27.8 KiB)
trail.fsm (30.8 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
3 Likes"
Matthew Gillespie answered Jason Lightfoot edited

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.

· 2
5 |100000

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

Rahul R avatar image Rahul R commented ·

@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 0 ·
1651799646063.png (17.1 KiB)
1651799674672.png (8.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Rahul R commented ·
List("AR_Drive_List").push(Group("AR_Drive_Group").toFlatArray())
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.