Bug Report can't edit and save database name in globals

OS info

  • Operating System : Windows 10.0.19044
  • Wappler Version : 5.0.0-beta.7

Problem description

Hi there dear Wappler support,

I have an issue where I cannot edit and save the database name from the database connection in globals.
error1
So I want to change this defaultdb to something else:


But upon chaning and pressing save and after that pressing ctrl+s to save the file, I get this error:

Validation failed
Name is not a valid variable name!
It shouldn't contain any spaces and have to start with a letter!

The desired db name is ‘r108pmsv2’ so I don’t see why this would be a problem.

Thanks in advance for your response.
report1656666388017.zip (126.9 KB)

bump on this issue

It is not allowed to use dash (minus sign) in db names.

I will see if we can add more checks about this and prevent it as well.

Okay, removing the dashes indeed fixed the issue. Thanks!