IT2Be:
Not sure but what if you add “3” instead of 3.
I guess the valuelists is formatted as a String. Adding 3 will format to 3.0.
Again, wild guessing but I would not be surprised if this is it.
(BTW you can also do 3 + “”).
Hope this helps
The dataprovider is an INTEGER, so that would return a 3, wouldn’t it?
ROCLASI:
Hi Karel,
Can you check if correspondence_type indeed holds that value.
Like with application.output(correspondence_type)
This returns 3
But when I try an Evaluate:
application.getValueListDisplayValue(‘rel_correspondence_type’, 3)
I get nothing as result.
Also when you use a value higher then the valuelist is long you end up with a null as well.
That’s not possible here. The user selects the value by combobox.
I use application.getValueListDisplayValue(‘rel_correspondence_type’, correspondence_type) only to set the selected value in a title bar.
So what on earth could be wrong here?
Servoy Developer
Version 3.1.6-build 410
Java version 1.6.0_01-b06 (Windows XP)
This is where it goes wrong:
if I attach the valuelist to a field on the form where I do application.getValueListDisplayValue() , the function doesn’t work.
If the valuelist is removed from the field, the function works again.
Maybe something with escaped codes or something like that?
I experienced something funny in that area as well yesterday.
So I would not be surprised if you, accidentally, hit some sort of key combination while you were doing something wild
IT2Be:
Maybe something with escaped codes or something like that?
I experienced something funny in that area as well yesterday.
So I would not be surprised if you, accidentally, hit some sort of key combination while you were doing something wild