Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Check report variable existence in expression designer
griniland
<p>I have report library, which has DataSet witch computed field. Expression is</p><p>"test"+var["MyVariable"].</p><p> </p><p>My need is to check, if expression "test"+var["MyVariable"] is valid before getting Runtime Error, which occurs, when variable is not defined in a report, which inherits my library Data Set. </p><p>How to achieve this?</p>
Find more posts tagged with
Comments
griniland
<p>Solved.</p><pre class="_prettyXprint">Try { var value=var["MyVariable"] }catch (e) {} </pre>
micajblock
<p>Even if it works, I would not do it. Why not use user properties, so that the object is encapsulated in the library with no dependencies.</p>