Can any one help me to understand the syntax error that i am using in this script
Action performed Execution error that the ignitionhistorydb.prddp' doesn't exist
database connection named as db and connected URL to database called production
Project default database is ingtionhistorydb.
prdp is a table of production database
Shift=event.source.parent.getComponent('Shift').selectedValue
Product=event.source.parent.getComponent('ProductList').selectedStringValue
Qty=event.source.parent.getComponent('Qty').intValue
IdPrdDP=201983245txID=system.db.beginTransaction()
system.db.runPrepUpdate("INSERT INTO prddp (Shift, Product, Qty, IdPrdDP) VALUES (?,?,?,?)", [Shift,Product,Qty,IdPrdDP])
system.db.commitTransaction(txID)
system.db.closeTransaction(txID)
'
'Traceback (most recent call last):
File "event:actionPerformed", line 7, in
java.lang.Exception: java.lang.Exception: Error executing system.db.runPrepUpdate(INSERT INTO prddp (Shift, Product, Qty, IdPrdDP) VALUES (?,?,?,?), [3, PRD-A, 231, 201983245], , , false, false)
caused by Exception: Error executing system.db.runPrepUpdate(INSERT INTO prddp (Shift, Product, Qty, IdPrdDP) VALUES (?,?,?,?), [3, PRD-A, 231, 201983245], , , false, false)
caused by GatewayException: SQL error for "INSERT INTO prddp (Shift, Product, Qty, IdPrdDP) VALUES (?,?,?,?)": Table 'ignitionhistorydb.prddp' doesn't exist
caused by SQLSyntaxErrorException: Table 'ignitionhistorydb.prddp' doesn't exist
Ignition v7.5.14 (b1594)
Java: Oracle Corporation 1.8.0_211
'