Buy Now
Sign in

db save fail does not work

samir1903 , February 23 2019, 20:32
S
samir1903 177
February 23 2019, 20:32 #384132
db save, where condition works and update
if where condition fails it does not save it is supposed to be but it does not read inside of fails condition of db save
it says your record is saved succesfully
but it is not
healyhatman 7
February 23 2019, 21:48 #384134
That's not what that fail event is for. It's for
a) the database action encounters an error or
b) you put a /+ after a condition, and the data isn't there. E.g. field:{data:fieldname}/+ and there's no fieldname data.
What's happening, is that it's successfully updating all the records meeting your condition - it just so happens that none of them do. Sounds like what you need to do is put a read data action first, and check if the record you want exists.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
S
samir1903 177
February 23 2019, 22:56 #384139
right thanks
i put event switcher and works
but i donot understand still
field:{data:fieldname}/+
what is this for?
healyhatman 7
February 23 2019, 23:04 #384140
I told you what it's for. Have another look.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store