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)
Hide or show parameter without customize parameter page
OmkarR
<p>Hi All ,</p>
<p> </p>
<p>I am facing issue in designing report. My requirement is as follows ,</p>
<p>1.I have TimeFrame as a parameter in cascaded parameters group which has following values as string</p>
<p> Last 2 days , Last 5 days, startenddate</p>
<p>2.Upon selection of "startenddate" value of TimeFrame by user from ListBox another parameter in report say startDate(which is hidden and not cascaded one) should get visible.</p>
<p>3.if User changes value of TimeFrame to some other value say " Last 2 days" the startDate parameter should be hidden again</p>
<p>So in summary requirement is to hide or show starDate parameter dynamically at runtime on selection of value of TimeFrame parameter.</p>
<p>What I did try is to put following script in getDefaultValueList of StartDate parameter</p>
<div> </div>
<div>if (params["TimeFrame"].value.toString()=="startenddate") </div>
<div>{</div>
<div>reportContext.getDesignHandle().findParameter("StartDate").hidden = false;</div>
<div>}</div>
<div>else {</div>
<div>reportContext.getDesignHandle().findParameter("StartDate").hidden = true;</div>
<div>}</div>
<div>But it did not work. May be I am trying something wrong here.... Also I don't want customized parameter page. Is there any other simpler way to do this....</div>
Find more posts tagged with
Comments
GLO_FR
<p>Hi,</p>
<p> </p>
<p>the parameter page layout is not dynamic. You can't hide or show parameter like you are trying to do</p>
<p> </p>
<p>If you want to have something dynamic, you have to build your own parameter windons and so you have the total control of the layout.</p>
OmkarR
<p>Thanks a lot for your reply
I will try for customized parameter page.....</p>