How to obtain the entries and back orders number in a list?
How to obtain the entries and back orders number in a list?
i want to do the same but just for process flow list. this is internal list and not connected to any global list. @Matthew Gillespie @Logan Gold
In Process Flow, the List block will draw a green circle that displays how many entries it has and a red circle that displays how many back orders it has.
Outside of Process Flow you can use the listentries() and listbackorders() commands to get a reference to the entries or back orders node of the specified list. You would then just need to use the content() command to find out how many there are.
content(listentries(globallist("List1"))) content(listbackorders(globallist("List1")))
Note: Those commands really only work for global lists. If you are using a Process Flow List activity that uses an internal list you'll need to use your solution since the actual list is buried deep in the process flow structure.
If you need to get the number of entries or back orders on a list in process flow, you can use the Assign Labels activity, and use the pick option: Activity Stat. Choose the list as the object, and then either Content, or Back Order Content as the stat to get.
Also solved as follow:
treenode current = param(1); treenode activity = param(2); treenode token = param(3); treenode createdToken = param(4); treenode assignTo = createdToken; int creationRank = param(5); string labelName = param(6); treenode processFlow = ownerobject(activity); return getstat(getactivity(processFlow, "Inventory"), "BackOrderContent", STAT_CURRENT, current);
5 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved