question

Cetim C avatar image
0 Likes"
Cetim C asked Felix Möhlmann answered

To order by date

Hello,

I am having problems with this case.
In the decision point, there is a label that assigns a date. My goal is to write the earliest date in the global table but I have a problem with the code.
In can´t find the error and so on, I don´t know if this would be the best way to do it.

Greetings

FlexSIm.fsm

FlexSim 21.1.5
write to global tabledates
flexsim.fsm (122.2 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

One problem is that you assume the entry in the table is going to be in the dd/mm/YY format, but you write the default string to the table. You either have to adjust the format when reading the value or when writing it, so they match.

The other issue is that you got the variables confused: 'tableID', which you are trying to read from and write to is just the name of the table you enter in the pick option. The reference to the actual table ('table') is constructed later.

I fixed the code in the 'Langostino' queue. The others should then be adjusted accordingly.

flexsim_1.fsm


flexsim-1.fsm (123.0 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.