PouchDB insert in flow in Beta 25

OS info

  • Operating System : Windows 10.0.22631
  • Wappler Version : 7.0.0-beta.25

Problem description

Adding a pouchdb insert in a nodejs page fails with text displaying instead of usual output. Works fine in v6.8.

Code below from beta 7.25 it seems to strip away the input input1.value

run({'pouchdb.insert':{name:'insert',connection:'db',sql:{type:'insert',values:[{table:'data_risk_esource',column:'e_source',type:'text',value:''}],table:'data_risk_esource',returning:'_id',query:'insert into `data_risk_esource` (`e_source`) values (?)',params:[{name:':P1',type:'expression',value:'
',test:''}]}}})

Code below from v 6.8

run({'pouchdb.insert':{name:'insert',connection:'db',sql:{type:'insert',values:[{table:'data_risk_esource',column:'e_source',type:'text',value:`input1.value`}],table:'data_risk_esource',returning:'_id',query:'insert into `data_risk_esource` (`e_source`) values (?)',params:[]}}})

I did this multiple times on both versions.

Steps to reproduce

1.Create onclick flow event on a button
2.Add pouchdb insert step and save event
3. This also happens if you do it correctly in v6.8 then open in beta go into event insert option and click ok then save.

Fixed in Wappler 7 beta 26

Thanks for the fix works now.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.