calculation name issue | S401

in Servoy 4.01 it is not possible to start a calculation name with an underscore “".
If you try to start with an "
”, Servoy is ignoring the typing of the sign"_".

We have some checks in place when entering/editing identifier names.
This is to prevent issues with scripting and/or sql.

Maybe this check on calculation names is too strict.
You can probably work around it by changing the name in the calculations js file.

Rob

Hi Rob

I was extremly surprised to realize Servoy 4 doesn’t allow the editing of underlines as a variable beginning. I absolutly don’t understand that behaviour. Have you got an example where it’s not allowed? I strongly ask Servoy to accept the underline character or very clearly tell us why you suddenly stop supporting it!? These sort of surprising changings really spoil the pleasure of working with Servoy for me and costs in an unnecessary (or at least for me in a not understandable) way developing time!

Regards, Robert

rgansevles:
We have some checks in place when entering/editing identifier names.
This is to prevent issues with scripting and/or sql.

Maybe this check on calculation names is too strict.
You can probably work around it by changing the name in the calculations js file.

Rob

Robert Huber:
I was extremly surprised to realize Servoy 4 doesn’t allow the editing of underlines as a variable beginning

Robert, all my variables are named with a starting underscore and everything works perfectly, Rob was talking about calculations not variables, it doesn’t seem to be such a big issue to me.

Hi Nicola

Sorry for being not very clear but I was talking about calculation variables in my post and yes,it may not be a big thing if you are not affected through such changes but if you have built up a concept on such conventions it’s quite annoying and time consuming. We already had to change all our calcs because of camel casing problems, i. e. inconsistent handling of camel casing in Servoy (sometimes it’s supported, sometimes not, for styles it’s converted to lower case by Servoy, …). May be I am a bit sensitive, but these things for sure didn’t speed up our development.
And what should be the enhancement of not allowing underscore for calcs?

Regards, Robert

ngervasi:

Robert Huber:
I was extremly surprised to realize Servoy 4 doesn’t allow the editing of underlines as a variable beginning

Robert, all my variables are named with a starting underscore and everything works perfectly, Rob was talking about calculations not variables, it doesn’t seem to be such a big issue to me.

And what should be the enhancement of not allowing underscore for calcs?

Robert,

The idea is that when you have a calc and you want to make it stored later in the process you will run into problems when the name problematic for some databases.
Note that you have an override possibility by simply changing the name in the javascript editor.

Rob

Hi Rob

Ok, but in my opinion these things should be in the developers responsibility, otherwise you really limit Servoy very much and the developer has to downgrade all the code to the most primitive databases. My suggestion is just give a warning as you do with the (Oracle) 30 character limit and the developer can decide wether she/he ever needs/wants to support databases with a 30 character limit etc.
With this procedures Servoy inhibits many common OO notation conventions and that’s not very progressive, is it? In the marketing material Servoy is always sold as a modern IDE :?

Thanks and best regards, Robert

rgansevles:

And what should be the enhancement of not allowing underscore for calcs?

Robert,

The idea is that when you have a calc and you want to make it stored later in the process you will run into problems when the name problematic for some databases.
Note that you have an override possibility by simply changing the name in the javascript editor.

Rob