Just wondering if it’s a bug or expected Servoy behaviour.
I have a valuelist referring to a global variable that is an object: var badFlips = { flip:“badFlip”, flop:“badFlop”};
The valuelist has the following contents:
Well, they don’t work .
I understand I can refer to global variable of basic types and this one is a little different.
But in the functions and methods a reference like globals.flip.flop would work so I assumed it would too in a valuelist
However, I tested that and it doesn’t work either… whereas it works fine when global variables of basic type are used. So it looks like the enum is indeed the problem.
However, I tested that and it doesn't work either... whereas it works fine when global variables of basic type are used. So it looks like the enum is indeed the problem.
Greetings,
Omar
Yes, Omar, I renamed the variables in a sample solution where I tested them, but yes, above is what I expected to work.
Ah well, will have to convert them all back to normal global variables I reckon.
this is not a bug, more a feature request to get this working
Servoy never really evaluated the actual javascript object of a global to get the value. It has only support for looking up global variables themselves.