Wappler Version : 3.9.7
Operating System : Windows10 Pro 20HD
Server Model: PHP
Database Type: MySQL
Hosting Type: Shared (HostEurope)
###Background
I want to increment database field by one.
###Steps to reproduce
Add Database Single Query to get information.
Set Value: Using lightning sign select field of single query
Using wand select ‘Operation’ with ‘+’ and Value “1”
Save and insert Database Update query to update field with incremented number
Expected behavior
The by one increased number is written to the respective database field.
Actual behavior
After having clicked save in the Set Value Value Window the generated code {{getcurrenthighscore.highscore.toNumber() + 1}} gets transformed into {{getcurrenthighscore.highscore.toNumber()}}1 whereby not adding but just adjoining the number 1 to the preexistent number.
Yeah, I played around with it a lot more, and I got to admit. The current way doesn’t make much sense. If you have to manually alter all such mathematical operations, why have the picker at all?
If I pick a variable, write a plus and pick the next variable 9 out of 10 people (at least) would want to add those to variables.
Writing plus is treated as a string. But when you select it from wand/formatter UI as an operation, then it treats as an addition calculation.
Right now, its a bit messed up.