question

Maria de Lourdes CV avatar image
0 Likes"
Maria de Lourdes CV asked Mischa Spelt commented

Error message when I insert a global table into the dashboard

Hi @jordan.johnson

In my model when I insert a global table into a dashboard appears this error:

exception: FlexScript exception: Invalid down cast. Object is not an instance of the target type. at MODEL:/Tools/Statistics/Table of Values>variables/numseries exception: FlexScript

exception: Invalid down cast. Object is not an instance of the target type. at MODEL:/Tools/Statistics/Table of Values>variables/numcategories

ceisa-flexsim-model-2017-v4-1206-prueba2.fsm

Could you help me with this?

Thanks a lot.

Lourdes Carrillo

Sigma Alimentos

FlexSim 17.1.0
dashboard error with global table
· 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.

Joel SL avatar image Joel SL commented ·

Hi all,

I get the same exceptions if I try to add a global variable to a dashboard. Is there a solution for this, too?

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Mischa Spelt commented

I was able to apply the table presets (on the data tab, choose Apply Preset->Table Values), which fixed the issue.

· 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.

Mischa Spelt avatar image Mischa Spelt commented ·

Hi Lulú,

I assume that this is an oversight that will be fixed in a future release, right guys? :-)

For the time being, you can fix this issue by going to the Data tab of your chart, clicking the Code Editor / Script button for each of the fields and changing the first line from

treenode current = param(1);

to

Object current = param(1);

in all 5 fields (# Series, Series Title, # Categories, Category Title and Data Point Value).

Alternatively, you can use a Table control on the dashboard to display the table. This will also make it easier to copy/paste; downside is that the table will be editable by the user (suggestion for the developers: add an option to make the control read-only!).

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.