Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
checking for null parameter causes crash
Migrateduser
<p>Hello,</p><p> </p><p>I created a report parameter that could be left blank. It shows up with a check mark beside it that says "no value". I leave it blank and check "no value", and then try to test whether nor not it's null in the script:</p><p> </p><p>if (params["myParam"] == null)
{
print("myParam is null");
}
else
{
print("myParam is not null");
}</p><p> </p><p>But instead of printing out a message, it crashes.</p><p> </p><p>I know my print() function works. I've been using it for months. If even checking the parameter for a null value causes it to crash, how can I test for a null value?</p>
Find more posts tagged with
Comments
There are no comments yet