question

Perrine D avatar image
0 Likes"
Perrine D asked Cliff King answered

Problem using global lookup table in Global Process to pick Staff

Hi everyone!

In a Global Process, I use a global lookup table to pick some staff.

(file: globallookuptable-pickstaff-globaltable.fsm )

I have a problem when I want to change the staff in the table: the change doesn't happen in the simulation.

If any professional is indicated in the table (no staff used for this activity) and if we add one, it works.

But if a staff is indicated (EAPAs for example) and we want to have no staff or another one (Kines for example) it doesn't work even if we reset, save or even save, close and reopen the model.

It seems like there is a staff table filled at the very beginning of the creation of the GP and we cannot change this table unless we want to change an empty cell.

How can we deal with that and the fact that we want to change our staff sometimes in these tables?

Thanks a lot for your help!

Perrine

FlexSim HC 5.3.4
global processesglobal lookup tablestaff requirements
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

·
Cliff King avatar image
0 Likes"
Cliff King answered

Take a look at the model tree below and you will see that there are a number of sub nodes associated with the one entry field node you typically edit in the Quick Properties window. Based on what you choose from the drop down list for the field in Quick Properties, the sub nodes may or may not be filled in automatically. If the subnodes (specifically the first one "RequirementType") are filled in, then it's an indicator during runtime that there is no need to evaluate the flexscript (S) node. I'm not sure why the subnodes are filled out for your first staff requirement for the "10_Activite1" activity, because if you had chosen "Based on global table lookup" from the drop down list, the subnodes would have been reset back to 0 or NULL. My guess is that you copy/pasted directly into the code window or something. The subnodes need to be reset to 0/NULL so that your global table lookup code will be evaluated during runtime.


5 |100000

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

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.