reportContext.getLocale() [message #759053] |
Fri, 25 November 2011 15:41  |
Eclipse User |
|
|
|
Hi all
I have a report variable that I can grab only the fisrt two charaters to the result of
reportContext.getLocale() function
This is what I'm doing
var locale=reportContext.getLocale().substr(1,2)
That expression gives me this error
"Type error : Can not find function string in object en_CA "
en_CA is the result of reportContext.getLocale() function
I'm using Birt 2.6.2
However if I do something like this
var locale="en.CA".substr(1,2) it works (it returns "en")
What is the difference? the first one is a variable, the second one is just a string
Kind of rookie on this
Thanks in advance for your help
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08605 seconds