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)
Changing Default value of parameter Based ON other parameter
lrnrit
Hi,
My report contains Two Parameters 1. Asset class and 2.Asset.
Is there any way to set the default parameter value of an asset parameter based on selection of Previous parameter(i.e, Asset Class)..
I tried this code in default parameter of asset but it dint work:
if (params["Asset Class"].value== 'SWITCH CAL SPECS')
{
'PR6780'
}
it only works well When code is for default value set for asset class Parameter.
like if Asset class default value is "XYZ" and code written in Asset parameter IS:
if (params["Asset Class"].value== 'xyz')
{
'PR6546'
}
THEN IT WORKS FINE WITH VALUE 'PR6546'.
I need same with changing parameter for all values of asset class not only default.
Any idea will be appreciated.
thanks
lrnit
Find more posts tagged with
Comments
mcremer
<blockquote class='ipsBlockquote' data-author="'lrnrit'" data-cid="81380" data-time="1312965357" data-date="10 August 2011 - 01:35 AM"><p>
Hi,<br />
<br />
My report contains Two Parameters 1. Asset class and 2.Asset.<br />
<br />
Is there any way to set the default parameter value of an asset parameter based on selection of Previous parameter(i.e, Asset Class)..<br />
<br />
I tried this code in default parameter of asset but it dint work:<br />
<br />
<br />
if (params["Asset Class"].value== 'SWITCH CAL SPECS')<br />
{<br />
'PR6780'<br />
}<br />
<br />
<br />
it only works well When code is for default value set for asset class Parameter.<br />
<br />
like if Asset class default value is "XYZ" and code written in Asset parameter IS:<br />
<br />
if (params["Asset Class"].value== 'xyz')<br />
{<br />
'PR6546'<br />
}<br />
<br />
THEN IT WORKS FINE WITH VALUE 'PR6546'.<br />
<br />
I need same with changing parameter for all values of asset class not only default.<br />
<br />
Any idea will be appreciated.<br />
<br />
<br />
<br />
<br />
thanks<br />
lrnit<br /></p></blockquote>
<br />
YOu can do this trough Cascading Parameter Group.