Server Connect Validator not working with global db connection?

Wappler Version:3.6.0
Operating System: Windows 10

What do you think should happen?
Validator should query DB and return error for duplicate records in the database.

What actually happens?
Server API returns error ‘Connection “db” not found’. There’s only a single connection, called db, defined under globals and the server action works without the validation step. I’ve tried deleting and recreating and on another blank page.

This is the server action:


This is the validator step:


This is the error:

image

HI,

Do you have any update on this ? I am facing the same issue

Nora

Not yet I’m afraid. Been meaning to test in a fresh project but haven’t got around to it yet.

I am having the same issue, and am on version 3.6.1, also Windows 10
I have tried a fresh project to no avail
Hope to get some feedback on this

It looks like this is a bug in php projects.

I have the validate action working fine on node.

Just in case you haven’t figure out your own work-arounds, the following will do the same as a validate action making sure the email does not exist in the db.

Note the condition is !validate_email

Thank you for your response Ken, and a happy new year to you.
I have tried it in node js and it is working fine, thought it was something wrong with my setup, am sure it will be fixed in due course when the team gets back from leave
Workaround makes sense :smile:

1 Like