question

Patrick Zweekhorst avatar image
2 Likes"
Patrick Zweekhorst asked Sam Stubbs answered

How to see values 0 in a processflow dashboard table of values?

Hi,

I want to see some statistics of a list in process flow in a table of values. The problem I have is that when a value reaches 0, it is no longer visible in the dashboard. I have attached two pictures, one before the current and minimum values reaches 0 and one after. I would like that the current and minimum value is still displayed with value 0. Is this possible?

Thanks in advance,

Patrick.

NB, I used resetstat() at time 0.01 to reset the minimum value on the list. I do not want it to be always 0 since the list starts empty.

FlexSim 16.1.2
processflowdashboardsminimum
dashboard1.png (2.6 KiB)
dashboard2.png (2.7 KiB)
examplemodel.fsm (22.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

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered

This appears to be a bug, I've notified the developers so they can fix this. In the meantime however, there is a work around we can use. There's a dashboard object called "Model Documentation" that you can drag out into your dashboard. This is an html based display (which you can read up on in the user manual if you want to explore the display functions), however, it also allows for dynamic FlexScript to be inserted into the display. (Click on the code/script icon with the green plus sign in the Model Documentation properties window.) In this FlexScript insert, I added the following commands that will return the stats you're looking for.

pf(getstat(getactivity("ProcessFlow", "List"), "Content", STAT_AVERAGE, current));
pr();
pf(getstat(getactivity("ProcessFlow", "List"), "Content", STAT_MIN, current));
pr();
pf(getstat(getactivity("ProcessFlow", "List"), "Content", STAT_CURRENT, current));

You can look up more details about the 'getstat()' command in the manual. (The pf(), pt(), pd() commands are used with HTML, since the Model Documentation object is an HTML display. You can also read more about these in the user manual if needed.)

Anyway, I've reattached your model below. Hopefully this is a suitable workaround for now.

dashboardzeros.fsm


dashboardzeros.fsm (23.7 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.

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.