Hide or show parameter without customize parameter page
<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>
<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>
0
Comments
-
<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>
Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 105 General Questions
- 142 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management