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)
params variable visibility
AlexAD
Hello.<br />
<br />
When I use <pre class='_prettyXprint _lang-auto _linenums:0'>params["paramName"]</pre> within event functions of a chart I get the error message that the variable isn't defined. The way of using <pre class='_prettyXprint _lang-auto _linenums:0'>icsc.getExternalContext().getScriptable().getParameterValue("paramName")</pre> is cumbersome and I'd like to use the first one. Is it possible?<br />
<br />
Thank you in advance.
Find more posts tagged with
Comments
mwilliams
Unfortunately, that's the only way to access your parameters, I believe. If you use the parameter many times, just store it to a variable and then you only have to type that long line once.
AlexAD
Thanks, Michael.
In future releases why don't widen the scope of params variable so that it is visible in a chart script
mwilliams
You could definitely suggest this as an enhancement for the next version in the eclipse.org/birt bugzilla. If you do log a request, please put the info in here for future reference and for others who stumble across this thread to be able to vote on it!