question

Steven Hamoen avatar image
0 Likes"
Steven Hamoen asked Jonah K commented

Problems with Exporting All Dashboards to HTML

The functions "Exporting All Dashboards to HTML" is very powerful especially if you are running the experimentation and then send all graphs to somebody else who can still change the size and zoom in etc. to prepare the graphs for either a presentation or report. But we encounter the following 2 problems:

1. Once the model run is finished you have to click every dashboard and scroll all the way down so that all information has been visible redrawn otherwise the graphs are empty after exporting.

2. for bar graphs with the bars vertically (so e.g. utilization graphs of all locations) if the size in the dashboard is not big enough to contain all data the graph can not be selected in the HTML so size changes are not possible (you can scroll down to view all info)

FlexSim 23.2.0
export all dashboards to html
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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jonah K commented

For issue 1, I have investigated somewhat. I think the issue is that some stats collectors or calc tables don't update unless they are painted, or if you view the table. I suspect that the "export all" option doesn't update them properly. But when you open the dashboards, they get a paint message, which eventually calls update on the underlying stats collector. I'll add this issue to the dev list. In the meantime, you can use the following script to update the stats collectors for all charts before exporting to html:

treenode chartsFolder = Model.find("Tools/Statistics");
var charts = chartsFolder.subnodes;
for (int i = 1; i <= charts.length; i++) {
  treenode chart = charts[i];
  if (isclasstype(chart, "GenericChart")) {
    treenode bundle = function_s(chart, "getBundleNode");
    function_s(ownerobject(bundle), "update");
  }
}

Also, here is a model I tested this code on:

ExportDashboardDemo_v232.fsm

For issue 2, I was able to replicate this issue. I'll add that to the dev list as well.


· 1
5 |100000

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

Jonah K avatar image Jonah K ♦ commented ·

@Steven Hamoen This has been fixed in FlexSim 24.0.3 released today.

0 Likes 0 ·