Good morning at all!
In my model I have a global table composed by a column that define the level of the rack and another column that define the coordinate z of the level.
In an activity I would like to find the level of the rack using the coordinate. I tried to use a cicle while and a cicle for connected to the global table, but when the token pass the second time from the activity, the result is completely wrong.
So I would like to use an sql query to find the row of the global table which have the values that I need, not using the various cicle. The z coordinate to search in saved in a variable.
My questions are: 1) is possible to write the code in an activity? 2) do you have any ideas how to set the code?
Thanks!
I attach my code. The activities involved in my research are the two "Travel_LiftToTier" in the right side of the model