I face a problem while I am trying to run a SQl query which included Ignition property inside.
If is not available to included property inside the query? or I didnt set up some setting?
My SQL Query=SELECT Item_Name, Item_Weight, t_stamp FROM container WHERE Storage_Bay = {baypopup.bayNo}
{baypopup.bayNo}=property of a template
My database connection and satus are both valid.
Details:
Exception: Error running query:
SQLQuery(query=SELECT Item_Name, Item_Weight, t_stamp FROM container WHERE Storage_Bay = , database=DB)@5000ms
On: baypopup.baypopup.Template Repeater.templateParams
caused by GatewayException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1
caused by MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘’ at line 1
From the original error message, it appears that the property reference is being replaced with an empty string. That suggests a typo in the reference name or in the outer assignment from template holder to that property of the template.
Thanks for trying to help.
At the end it was my keyboard input problem. I change it back to default one and retype the quote symbol then everything work perfectly now.