Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to display a dropdown select based on the value of other dropdown select

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to display a dropdown select based on the value of other dropdown select
 Login/Join
 
Member
posted
Hi All,

I have a requirement to display the TimeFrame TimeFrame dropdown list prompt which holds the value like "Year,Qtr,Month".

When user selects the Year in TimeFrame dropdown prompt,the new year dropdown prompt has to be displayed for year selection e.g TimeFrame:Year Year:"2013,2014,2015".

When user select the Qtr in the TimeFrame dropdown prompt,Year dropdown and Qtr dropdown has to be displayed e.g TimeFrame:Qtr Year:2014 Qtr:Q1

Similarly, if the Month value has chosen then, Year,Qtr and Month dropdown list has to be prompted e.g TimeFrame:Month Year:2014 Qtr:Q1 Month:January

Any help is greatly appreciated.

Thanks,
Saranya M

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 12 | Registered: March 26, 2014Report This Post
Virtuoso
posted Hide Post
Do a search on chaining


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
A possible solution is to have 1 control per option in the TimeFrame drop list: YearDL, QtrDL, MonthDL. Where each control have previously been properly populated with their values.

Then have an "onchange" event assigned to TimeFrame with the following in the function :
function TimeFrame_onchange(ctrl) {

	var timeFrame = IbComposer_getCurrentSelection('TimeFrame');
	
	if (timeFrame == ‘Year’)
	{
		document.getElementById("YearDL").style.visibility='visible';
		document.getElementById("QtrDL").style.visibility='hidden';
		document.getElementById("MonthDL").style.visibility='hidden';
	}	
	
	if (timeFrame == ‘Qtr’)
	{
		document.getElementById("YearDL").style.visibility='hidden';
		document.getElementById("QtrDL").style.visibility='visible';
		document.getElementById("MonthDL").style.visibility='hidden';
	}	
	
	if (timeFrame == ‘Month’)
	{
		document.getElementById("YearDL").style.visibility='hidden';
		document.getElementById("QtrDL").style.visibility='hidden';
		document.getElementById("MonthDL").style.visibility='visible';
	}	
}

  


This will show and hide proper control according to selection made in TimeFrame drop list.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to display a dropdown select based on the value of other dropdown select

Copyright © 1996-2020 Information Builders