question

Aljoša Jamnik avatar image
0 Likes"
Aljoša Jamnik asked Aljoša Jamnik commented

Dashboard - Queue Max Content displayed in the Table Chart

Greetings!

I would like to produce a Table Chart that shows me in a column the Max Content of a Queue so that I can see if the maximum limit of carts has been exceeded in a given queue.

For example, I have a Queue "Prazni vozički" and its Max content is 32. What should I write in the Content Collector - Value so that the Content Table displays 32 (and as well for the rest of the queues)?

Please see the attached picture.

Thank you and best regards!

Aljošaqueue-max-content-displayed-in-the-table-chart.png


FlexSim 23.1.2
queuedasbhoardcontent table
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Aljoša Jamnik commented

The maximum content can be read in two ways; as a variable and as a property.

.getVariable() looks for a node in the variables attribute node of the object with the given name and returns its value.

1687936837983.png

.getProperty() instead takes the names as they appear in the property table as parameters and returns their value.

1687936884255.png

For anything that is available as a property, the second way should be used.

object.getVariable("maxcontent");

object.getProperty("MaxContent");

1687936837983.png (4.0 KiB)
1687936884255.png (14.7 KiB)
· 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.

Aljoša Jamnik avatar image Aljoša Jamnik commented ·

Thank you Felix for the quick reply! If I try and enter the second way I get some Flexscript errors. What should I edit in the ToolBox - Statistics Collector - Content 1 Collector - Columns - Željeno - Value?

Thank you!

question - Max content in Table Chart.fsm

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Aljoša Jamnik commented ·

"object" was just meant as a placeholder for the reference to the queue, since I didn't know how exactly your Statistics Collector was set up to provide this reference.

It should be replaced with "data.rowValue".

1687939534005.png

1 Like 1 ·
1687939534005.png (21.2 KiB)
Aljoša Jamnik avatar image Aljoša Jamnik Felix Möhlmann commented ·
Felix thank you for the solution and the clarification!!
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.