question

berkowicz-k avatar image
0 Likes"
berkowicz-k asked Felix Möhlmann answered

Staff Group Lookup by Global Table

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

FlexSim 21.0.10
bugstafferrorserrormessage
bug6.fsm (56.9 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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

"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


capture1.png (4.4 KiB)
capture2.png (63.5 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.