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

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

patrick_zweekhorst
Advocate Advocate
13 Views
1 Reply
Message 1 of 2

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

patrick_zweekhorst
Advocate
Advocate

[ FlexSim 16.1.2 ]

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.

2890-dashboard1.png

2891-dashboard2.png

Accepted solutions (1)
14 Views
1 Reply
Reply (1)
Message 2 of 2

sam_stubbsYXX86
Community Manager
Community Manager
Accepted solution

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

0 Likes