Javascript 在事件结束时保存数据
我正在为计时器创建一个事件,当停止计时器时,它会将数据保存在我的数据库中 但在调用数据插入时,它标记了以下错误 由以下原因引起:java.lang.Exception:执行system.db.runPrepUpdate时出错(插入PAROS(Linea、Maquina、TipoParo、TiempoParo、Fecha)值(?、、?、?、?),[Item,Prueba,Prueba,0.21695000330607098,Mon Apr 12:45:24 CDT 2021],TOY,false,false) 这是我的密码Javascript 在事件结束时保存数据,javascript,python,insert,Javascript,Python,Insert,我正在为计时器创建一个事件,当停止计时器时,它会将数据保存在我的数据库中 但在调用数据插入时,它标记了以下错误 由以下原因引起:java.lang.Exception:执行system.db.runPrepUpdate时出错(插入PAROS(Linea、Maquina、TipoParo、TiempoParo、Fecha)值(?、、?、?、?),[Item,Prueba,Prueba,0.21695000330607098,Mon Apr 12:45:24 CDT 2021],TOY,false,
如果currentValue.value==False和currentValue.value!=previousValue.value和not initialChange:
INS=“插入PAROS(Linea、Maquina、TipoParo、TiempoParo、Fecha)值(?、、?、?)”
Contador=system.tag.read(“[.]MemTimeDiff”)
Fecha=system.date.now()
system.db.runPrepUpdate(INS、[“项目”、“Prueba”、“Prueba”、Contador.value、Fecha]、“玩具”)