Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Localizing javascript labels
Ann
Hi,
Im trying to localize the text of a radio button in javascript. The javascroipt is written in a text element in the report. However I am unable to get the reportContext inside the javascript to access the resource file.
I tried this but failed:
reportContext.getMessage("key",reportContext.getLocale());
Please help me out if you knw any solution.
Thank You
Find more posts tagged with
Comments
Virgil Dodson
Hi Ann,
Replace the word "key" with the actual name of a key from your properties file. Like the example below which works in a TEXT control
<VALUE-OF>reportContext.getMessage("welcome",reportContext.getLocale())</VALUE-OF>
This also assumes you have pointed to your properties file under Resources on the report.