I am using the new features of database connection with SQL in Flexsim. I did the tutorial related to it, in which they use phpmyAdmin as an example (https://answers.flexsim.com/articles/19407/sql-tutorial-step-by-step-model-construction-29.html). I made some changes, as in my model I would want to register the time in which my products reach the sink and their label as well. I managed to register their time, however when I try to do the same for the labels, my table only gets filled up with nulls. I don´t know why, as the logic seems right, I´m using this line code: string Etiqueta = getlabel(item,"WIP");
I´m not using a primary key because I need my table to act as a view entries list, so the NULL should all be: 40405. In the future I´m hoping to be able to extend my number of labels, so it´s important for me to solve this.