SQL query objects from calculated table

SQL query objects from calculated table

lynsey_lingEFTAN
Explorer Explorer
318 Views
1 Reply
Message 1 of 2

SQL query objects from calculated table

lynsey_lingEFTAN
Explorer
Explorer

[ FlexSim 24.1.0 ]

I making statistic collector which each row will query the "Elevator" status from calculated table. However, the elevator stored in calculated table is in Object, but the statistic collector is query using string. How to convert calculated table object to string?

return Table.query("SELECT Idle FROM [AMR Lift Utilization] WHERE Elevator = $1",data.token.Lift)[1][1];

0 Likes
Accepted solutions (1)
319 Views
1 Reply
Reply (1)
Message 2 of 2

xavier_low
Contributor
Contributor
Accepted solution

Hello @lyn_lyn11 ,

If you want to just get the Elevator object name instead of the object itself, based on the example you have provided, you can do: data.token.Lift.name

Hope this helps.

0 Likes