Staff Group Lookup by Global Table

Staff Group Lookup by Global Table

lliE3FX7
Explorer Explorer
18 Views
1 Reply
Message 1 of 2

Staff Group Lookup by Global Table

lliE3FX7
Explorer
Explorer

[ FlexSim 21.0.10 ]

Hi,

I'm trying to acquire a staff group through global table lookup by putting 'Any member of Staff' in a global table and choosing 'object by global table lookup' in the staff resource block. However, it is not working and giving me an error:

int assertattribute(TreeNode *object,char *name, int datatype).

Attached my sample model. Any help is appreciated.

bug6.fsm

0 Likes
Accepted solutions (1)
19 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Observer
Observer
Accepted solution

"Any member of Staff" is placeholder text to let the user know what the Staff resource will default to when nothing else is specified. If you select other options that do not directly refer to objects it will generate code that returns a reference to one or more objects that belong to the resource. The table cell you point to needs to do the same. To denote 'any staff' it should point to the "Staff" group.

(Right-click on the cell or column and assign "pointer" data type to it. Then use the sampling tool to select the group from the toolbox).

capture1.png

(As an example, this is the code behind the default configuration of the "By Case" option, choosing a different group depeding on the day of the week).

capture2.png